Class JSON.JSONString

java.lang.Object
net.diversionmc.parser.util.Pointable
net.diversionmc.parser.pattern.Sentence
net.diversionmc.json.JSON.JSONValue
net.diversionmc.json.JSON.JSONString
Enclosing class:
JSON

public static final class JSON.JSONString extends JSON.JSONValue
Parsed JSON string, or stored values true, false or null.
  • Constructor Details

    • JSONString

      public JSONString(net.diversionmc.parser.util.FilePointer ptr, String s)
      Construct a JSON String "text..."
      Parameters:
      ptr - Creation position.
      s - String content to store.
  • Method Details

    • content

      public String content()
      Get content of this JSONString.
      Returns:
      String content.
    • toString

      public String toString()
      Serialize current JSONArray back to JSON.
      Overrides:
      toString in class Object
      Returns:
      true, false, null, or "text,..."