类 JsonJsonParser
- java.lang.Object
- org.springframework.boot.json.JsonJsonParser
- 所有已实现的接口:
JsonParser
public class JsonJsonParser extends Object implements JsonParser
Thin wrapper to adaptorg.json.JSONObject
to aJsonParser
.- 从以下版本开始:
- 1.2.0
- 另请参阅:
JsonParserFactory
构造器概要
构造器 构造器 说明 JsonJsonParser()
构造器详细资料
JsonJsonParser
public JsonJsonParser()
方法详细资料
parseMap
public Map<String,Object> parseMap(String json)
从接口复制的说明:JsonParser
Parse the specified JSON string into a Map.- 指定者:
parseMap
在接口中JsonParser
- 参数:
json
- the JSON to parse- 返回:
- the parsed JSON as a map
parseList
public List<Object> parseList(String json)
从接口复制的说明:JsonParser
Parse the specified JSON string into a List.- 指定者:
parseList
在接口中JsonParser
- 参数:
json
- the JSON to parse- 返回:
- the parsed JSON as a list