接口 JsonParser
public interface JsonParser
方法详细资料
parseMap
Map<String,Object> parseMap(String json) throws JsonParseException
Parse the specified JSON string into a Map.- 参数:
json
- the JSON to parse- 返回:
- the parsed JSON as a map
- 抛出:
JsonParseException
- if the JSON cannot be parsed
parseList
List<Object> parseList(String json) throws JsonParseException
Parse the specified JSON string into a List.- 参数:
json
- the JSON to parse- 返回:
- the parsed JSON as a list
- 抛出:
JsonParseException
- if the JSON cannot be parsed