public interface JsonParser
Maps or Lists.JsonParserFactory,
BasicJsonParser,
JacksonJsonParser,
GsonJsonParser,
YamlJsonParser| 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.
|
java.util.Map<java.lang.String,java.lang.Object> parseMap(java.lang.String json)
throws JsonParseException
json - the JSON to parseJsonParseException - if the JSON cannot be parsedjava.util.List<java.lang.Object> parseList(java.lang.String json)
throws JsonParseException
json - the JSON to parseJsonParseException - if the JSON cannot be parsed