Class JSONString

java.lang.Object
com.yahoo.prelude.hitfield.JSONString
All Implemented Interfaces:
com.yahoo.data.access.Inspectable

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

    • JSONString

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

      public JSONString(String content)
      Throws:
      IllegalArgumentException - Does not accept null content
  • Method Details

    • inspect

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

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

      public boolean fillWeightedSetItem(WeightedSetItem item)
    • getContent

      public String getContent()
    • getParsedJSON

      @Deprecated(forRemoval=true, since="7") public Object getParsedJSON()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use getContent() instead and parse content yourself
    • setParsedJSON

      @Deprecated(forRemoval=true, since="7") public void setParsedJSON(Object parsedJSON)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • renderFromInspector

      public String renderFromInspector()