Class JsonLiteral


  • public class JsonLiteral
    extends java.lang.Object
    JSON literal helper to write safe JSON object
    • Constructor Summary

      Constructors 
      Constructor Description
      JsonLiteral()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      JsonLiteral set​(java.lang.String property, java.lang.Object value)
      sets property
      java.lang.String toJSONString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JsonLiteral

        public JsonLiteral()
    • Method Detail

      • set

        public JsonLiteral set​(java.lang.String property,
                               java.lang.Object value)
        sets property
        Parameters:
        property - - plain property map i.e. "key", dotted not allowed
        value -
        Returns:
      • toJSONString

        public java.lang.String toJSONString()
        Returns:
        current state as JSON