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