public abstract class JSONMessageBodyReader extends Object
| Constructor and Description |
|---|
JSONMessageBodyReader() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleJSON(com.google.gson.stream.JsonReader reader,
Map<String,Object> map) |
protected void |
handleObject(com.google.gson.stream.JsonReader reader,
Map<String,Object> map,
com.google.gson.stream.JsonToken token,
boolean isArray)
Traverses through a json object and maps the keys and values to a
Map |
protected void handleJSON(com.google.gson.stream.JsonReader reader,
Map<String,Object> map)
throws IOException
IOExceptionprotected void handleObject(com.google.gson.stream.JsonReader reader,
Map<String,Object> map,
com.google.gson.stream.JsonToken token,
boolean isArray)
throws IOException
Mapreader - JsonReadermap - map that the values to be added.token - JsonTokenisArray - whether the object is inside a json arrayIOException - If unable to parse the json objectCopyright © 2016 WSO2. All rights reserved.