Class JSONString

  • All Implemented Interfaces:
    com.yahoo.data.access.Inspectable

    public class JSONString
    extends java.lang.Object
    implements com.yahoo.data.access.Inspectable
    A JSON wrapper. Contains XML-style rendering of a JSON structure.
    Author:
    Steinar Knutsen
    • Constructor Detail

      • JSONString

        public JSONString​(com.yahoo.data.access.Inspector value)
      • JSONString

        public JSONString​(java.lang.String content)
        Throws:
        java.lang.IllegalArgumentException - Does not accept null content
    • Method Detail

      • inspect

        public com.yahoo.data.access.Inspector inspect()
        Specified by:
        inspect in interface com.yahoo.data.access.Inspectable
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • fillWeightedSetItem

        public boolean fillWeightedSetItem​(WeightedSetItem item)
      • getContent

        public java.lang.String getContent()
      • getParsedJSON

        public java.lang.Object getParsedJSON()
      • setParsedJSON

        public void setParsedJSON​(java.lang.Object parsedJSON)
      • renderFromInspector

        public java.lang.String renderFromInspector()