public class JsonMapObjectReaderWriter extends Object
Constructor and Description |
---|
JsonMapObjectReaderWriter() |
JsonMapObjectReaderWriter(boolean format) |
Modifier and Type | Method and Description |
---|---|
protected void |
formatIfNeeded(org.apache.cxf.jaxrs.json.basic.JsonMapObjectReaderWriter.Output out) |
Map<String,Object> |
fromJson(InputStream is) |
void |
fromJson(JsonMapObject obj,
String json) |
Map<String,Object> |
fromJson(String json) |
List<Object> |
fromJsonAsList(String json) |
List<Object> |
fromJsonAsList(String name,
String json) |
JsonMapObject |
fromJsonToJsonObject(InputStream is) |
JsonMapObject |
fromJsonToJsonObject(String json) |
protected static int |
getClosingIndex(String json,
char openChar,
char closeChar,
int from) |
protected static int |
getCommaIndex(String json,
int from) |
protected static int |
getNextSepCharIndex(String json,
char curlyBracketChar,
int from) |
protected List<Object> |
internalFromJsonAsList(String name,
String json) |
protected void |
readJsonObjectAsSettable(org.apache.cxf.jaxrs.json.basic.JsonMapObjectReaderWriter.Settable values,
String json) |
protected Object |
readPrimitiveValue(String name,
String json,
int from,
int to) |
void |
setFormat(boolean format) |
String |
toJson(JsonMapObject obj) |
void |
toJson(JsonMapObject obj,
OutputStream os) |
String |
toJson(List<Object> list) |
String |
toJson(Map<String,Object> map) |
void |
toJson(Map<String,Object> map,
OutputStream os) |
protected void |
toJsonInternal(org.apache.cxf.jaxrs.json.basic.JsonMapObjectReaderWriter.Output out,
Collection<?> coll) |
protected void |
toJsonInternal(org.apache.cxf.jaxrs.json.basic.JsonMapObjectReaderWriter.Output out,
Map<String,Object> map) |
protected void |
toJsonInternal(org.apache.cxf.jaxrs.json.basic.JsonMapObjectReaderWriter.Output out,
Object[] array) |
protected void |
toJsonInternal(org.apache.cxf.jaxrs.json.basic.JsonMapObjectReaderWriter.Output out,
Object value,
boolean hasNext) |
public JsonMapObjectReaderWriter()
public JsonMapObjectReaderWriter(boolean format)
public String toJson(JsonMapObject obj)
public void toJson(JsonMapObject obj, OutputStream os)
public void toJson(Map<String,Object> map, OutputStream os)
protected void toJsonInternal(org.apache.cxf.jaxrs.json.basic.JsonMapObjectReaderWriter.Output out, Map<String,Object> map)
protected void toJsonInternal(org.apache.cxf.jaxrs.json.basic.JsonMapObjectReaderWriter.Output out, Object[] array)
protected void toJsonInternal(org.apache.cxf.jaxrs.json.basic.JsonMapObjectReaderWriter.Output out, Collection<?> coll)
protected void toJsonInternal(org.apache.cxf.jaxrs.json.basic.JsonMapObjectReaderWriter.Output out, Object value, boolean hasNext)
protected void formatIfNeeded(org.apache.cxf.jaxrs.json.basic.JsonMapObjectReaderWriter.Output out)
public JsonMapObject fromJsonToJsonObject(InputStream is) throws IOException
IOException
public JsonMapObject fromJsonToJsonObject(String json)
public void fromJson(JsonMapObject obj, String json)
public Map<String,Object> fromJson(InputStream is) throws IOException
IOException
protected void readJsonObjectAsSettable(org.apache.cxf.jaxrs.json.basic.JsonMapObjectReaderWriter.Settable values, String json)
protected static int getCommaIndex(String json, int from)
protected static int getClosingIndex(String json, char openChar, char closeChar, int from)
protected static int getNextSepCharIndex(String json, char curlyBracketChar, int from)
public void setFormat(boolean format)
Apache CXF