public interface JsonRender
Modifier and Type | Method and Description |
---|---|
void |
appendBraceBegin() |
void |
appendBraceEnd() |
void |
appendName(String name) |
void |
appendPair(boolean needPairEnd,
String name,
Object value) |
void |
appendPairBegin() |
void |
appendPairEnd() |
void |
appendPairSep() |
void |
decreaseFormatIndent() |
Writer |
getWriter() |
void |
increaseFormatIndent() |
boolean |
isIgnore(String name,
Object value) |
void |
map2Json(Map map) |
boolean |
memoContains(Object obj)
循环依赖的检查
|
void |
render(Object obj) |
void |
setFormat(JsonFormat jsonFormat) |
void |
setWriter(Writer writer) |
void |
string2Json(String s) |
String |
value2string(JsonEntityField jef,
Object value) |
void |
writeItem(List<JsonPair> list) |
void |
writeRaw(String raw) |
void render(Object obj) throws IOException, JsonException
IOException
JsonException
void setWriter(Writer writer)
Writer getWriter()
void setFormat(JsonFormat jsonFormat)
boolean memoContains(Object obj)
void string2Json(String s) throws IOException
IOException
void map2Json(Map map) throws IOException
IOException
void writeRaw(String raw) throws IOException
IOException
void appendBraceEnd() throws IOException
IOException
void appendBraceBegin() throws IOException
IOException
void appendPairEnd() throws IOException
IOException
void appendPair(boolean needPairEnd, String name, Object value) throws IOException
IOException
void appendPairSep() throws IOException
IOException
void appendPairBegin() throws IOException
IOException
void appendName(String name) throws IOException
IOException
void increaseFormatIndent()
void decreaseFormatIndent()
String value2string(JsonEntityField jef, Object value)
void writeItem(List<JsonPair> list) throws IOException
IOException
Copyright © 2020. All rights reserved.