Class JSONArray

java.lang.Object
org.h2.util.json.JSONValue
org.h2.util.json.JSONArray

public class JSONArray extends JSONValue
JSON array.
  • Field Details

  • Constructor Details

    • JSONArray

      JSONArray()
  • Method Details

    • addElement

      void addElement(JSONValue value)
      Add a value to the array.
      Parameters:
      value - the value to add
    • addTo

      public void addTo(JSONTarget<?> target)
      Description copied from class: JSONValue
      Appends this value to the specified target.
      Specified by:
      addTo in class JSONValue
      Parameters:
      target - the target
    • getArray

      public JSONValue[] getArray()
      Returns the value.
      Returns:
      the value