Class JsonArray

java.lang.Object
com.atlassian.confluence.json.json.JsonArray
All Implemented Interfaces:
Json

public class JsonArray extends Object implements Json
  • Constructor Details

    • JsonArray

      public JsonArray()
    • JsonArray

      public JsonArray(List<Json> jsonList)
  • Method Details

    • serialize

      public String serialize()
      Description copied from interface: Json
      Returns a JSON-format string representation of this object.

      The string must evaluate in a Javascript engine; i.e. it must be a valid RHS for the Javascript expression: { data : RHS }

      Thus, nulls, booleans, numbers, strings, arrays and objects should be supported by implementing classes.

      Closures must not be returned with this method.

      Specified by:
      serialize in interface Json
      Returns:
      json-format representation of this object
      See Also:
    • add

      public void add(Json json)