Package org.nustaq.kson
Class JSonSerializer
java.lang.Object
org.nustaq.kson.KsonSerializer
org.nustaq.kson.JSonSerializer
Created by ruedi on 12.08.2014.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJSonSerializer(KsonCharOutput out, KsonTypeMapper mapper, FSTConfiguration conf) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected voidvoidsetClazzAttributeName(String clazzAttributeName) voidsetQuoteKeyNames(boolean quoteKeyNames) protected booleanshouldQuote(String string) protected voidwriteClazzTag(Class expectedClass, Object o) determines classname tagging.protected voidcalled when writing a key of an key:value inside an object or mapprotected voidprotected voidprotected voidMethods inherited from class org.nustaq.kson.KsonSerializer
isWriteNull, setWriteNull, writeIndent, writeln, writeObject, writeObject, writeObjectInternal, writeString
-
Field Details
-
clazzAttributeName
-
quoteKeyNames
protected boolean quoteKeyNames
-
-
Constructor Details
-
JSonSerializer
-
-
Method Details
-
isQuoteKeyNames
public boolean isQuoteKeyNames() -
setQuoteKeyNames
public void setQuoteKeyNames(boolean quoteKeyNames) -
getClazzAttributeName
-
setClazzAttributeName
-
shouldQuote
- Overrides:
shouldQuotein classKsonSerializer
-
removeLastListSep
protected void removeLastListSep()- Overrides:
removeLastListSepin classKsonSerializer
-
writeListEnd
protected void writeListEnd()- Overrides:
writeListEndin classKsonSerializer
-
writeListStart
protected void writeListStart()- Overrides:
writeListStartin classKsonSerializer
-
writeListSep
protected void writeListSep()- Overrides:
writeListSepin classKsonSerializer
-
writeClazzTag
Description copied from class:KsonSerializerdetermines classname tagging. Overrifing can enforce class tags always or (JSon) write as special attribute- Overrides:
writeClazzTagin classKsonSerializer
-
writeKey
Description copied from class:KsonSerializercalled when writing a key of an key:value inside an object or map- Overrides:
writeKeyin classKsonSerializer
-
noTypeTags
-