public class JSonSerializer extends KsonSerializer
| Modifier and Type | Field and Description |
|---|---|
protected String |
clazzAttributeName |
protected boolean |
quoteKeyNames |
| Constructor and Description |
|---|
JSonSerializer(KsonCharOutput out,
KsonTypeMapper mapper,
FSTConfiguration conf) |
| Modifier and Type | Method and Description |
|---|---|
String |
getClazzAttributeName() |
boolean |
isQuoteKeyNames() |
JSonSerializer |
noTypeTags() |
protected void |
removeLastListSep() |
void |
setClazzAttributeName(String clazzAttributeName) |
void |
setQuoteKeyNames(boolean quoteKeyNames) |
protected boolean |
shouldQuote(String string) |
protected void |
writeClazzTag(Class expectedClass,
Object o)
determines classname tagging.
|
protected void |
writeKey(String name)
called when writing a key of an key:value inside an object or map
|
protected void |
writeListEnd() |
protected void |
writeListSep() |
protected void |
writeListStart() |
isWriteNull, setWriteNull, writeIndent, writeln, writeObject, writeObject, writeObjectInternal, writeStringprotected String clazzAttributeName
protected boolean quoteKeyNames
public JSonSerializer(KsonCharOutput out, KsonTypeMapper mapper, FSTConfiguration conf)
public boolean isQuoteKeyNames()
public void setQuoteKeyNames(boolean quoteKeyNames)
public String getClazzAttributeName()
public void setClazzAttributeName(String clazzAttributeName)
protected boolean shouldQuote(String string)
shouldQuote in class KsonSerializerprotected void removeLastListSep()
removeLastListSep in class KsonSerializerprotected void writeListEnd()
writeListEnd in class KsonSerializerprotected void writeListStart()
writeListStart in class KsonSerializerprotected void writeListSep()
writeListSep in class KsonSerializerprotected void writeClazzTag(Class expectedClass, Object o)
KsonSerializerwriteClazzTag in class KsonSerializerprotected void writeKey(String name)
KsonSerializerwriteKey in class KsonSerializerpublic JSonSerializer noTypeTags()
Copyright © 2015. All rights reserved.