public class GsonJsonParser extends AbstractJsonParser
Gson
to a JsonParser
.JsonParserFactory
Constructor and Description |
---|
GsonJsonParser() |
Modifier and Type | Method and Description |
---|---|
List<Object> |
parseList(String json)
Parse the specified JSON string into a List.
|
Map<String,Object> |
parseMap(String json)
Parse the specified JSON string into a Map.
|
parseList, parseMap, trimParse, tryParse
public Map<String,Object> parseMap(String json)
JsonParser
json
- the JSON to parsepublic List<Object> parseList(String json)
JsonParser
json
- the JSON to parse