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.provider.json.JsonMapObjectReaderWriter.Output out) |
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(String json) |
protected int |
getClosingIndex(String json,
char openChar,
char closeChar,
int from) |
protected static int |
getCommaIndex(String json,
int from) |
protected List<Object> |
internalFromJsonAsList(String name,
String json) |
protected boolean |
isWhiteSpace(char jsonChar) |
protected void |
readJsonObjectAsSettable(org.apache.cxf.jaxrs.provider.json.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.provider.json.JsonMapObjectReaderWriter.Output out,
Collection<?> coll) |
protected void |
toJsonInternal(org.apache.cxf.jaxrs.provider.json.JsonMapObjectReaderWriter.Output out,
Map<String,Object> map) |
protected void |
toJsonInternal(org.apache.cxf.jaxrs.provider.json.JsonMapObjectReaderWriter.Output out,
Object[] array) |
protected void |
toJsonInternal(org.apache.cxf.jaxrs.provider.json.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.provider.json.JsonMapObjectReaderWriter.Output out, Map<String,Object> map)
protected void toJsonInternal(org.apache.cxf.jaxrs.provider.json.JsonMapObjectReaderWriter.Output out, Object[] array)
protected void toJsonInternal(org.apache.cxf.jaxrs.provider.json.JsonMapObjectReaderWriter.Output out, Collection<?> coll)
protected void toJsonInternal(org.apache.cxf.jaxrs.provider.json.JsonMapObjectReaderWriter.Output out, Object value, boolean hasNext)
protected void formatIfNeeded(org.apache.cxf.jaxrs.provider.json.JsonMapObjectReaderWriter.Output out)
public JsonMapObject fromJsonToJsonObject(String json)
public void fromJson(JsonMapObject obj, String json)
protected void readJsonObjectAsSettable(org.apache.cxf.jaxrs.provider.json.JsonMapObjectReaderWriter.Settable values, String json)
protected static int getCommaIndex(String json, int from)
protected int getClosingIndex(String json, char openChar, char closeChar, int from)
protected boolean isWhiteSpace(char jsonChar)
public void setFormat(boolean format)
Apache CXF