Class JSonSerializer

java.lang.Object
org.nustaq.kson.KsonSerializer
org.nustaq.kson.JSonSerializer

public class JSonSerializer extends KsonSerializer
Created by ruedi on 12.08.2014.
  • Field Details

    • clazzAttributeName

      protected String clazzAttributeName
    • quoteKeyNames

      protected boolean quoteKeyNames
  • Constructor Details

  • Method Details

    • isQuoteKeyNames

      public boolean isQuoteKeyNames()
    • setQuoteKeyNames

      public void setQuoteKeyNames(boolean quoteKeyNames)
    • getClazzAttributeName

      public String getClazzAttributeName()
    • setClazzAttributeName

      public void setClazzAttributeName(String clazzAttributeName)
    • shouldQuote

      protected boolean shouldQuote(String string)
      Overrides:
      shouldQuote in class KsonSerializer
    • removeLastListSep

      protected void removeLastListSep()
      Overrides:
      removeLastListSep in class KsonSerializer
    • writeListEnd

      protected void writeListEnd()
      Overrides:
      writeListEnd in class KsonSerializer
    • writeListStart

      protected void writeListStart()
      Overrides:
      writeListStart in class KsonSerializer
    • writeListSep

      protected void writeListSep()
      Overrides:
      writeListSep in class KsonSerializer
    • writeClazzTag

      protected void writeClazzTag(Class expectedClass, Object o)
      Description copied from class: KsonSerializer
      determines classname tagging. Overrifing can enforce class tags always or (JSon) write as special attribute
      Overrides:
      writeClazzTag in class KsonSerializer
    • writeKey

      protected void writeKey(String name)
      Description copied from class: KsonSerializer
      called when writing a key of an key:value inside an object or map
      Overrides:
      writeKey in class KsonSerializer
    • noTypeTags

      public JSonSerializer noTypeTags()