Class JsonArray

  • All Implemented Interfaces:
    Json

    public class JsonArray
    extends Object
    implements Json
    • Constructor Detail

      • JsonArray

        public JsonArray​(Object... items)
    • Method Detail

      • toString

        public String toString​(int indentFactor,
                               int indent)
        Make a pretty-printed JSON text of this JSONArray. Warning: This method assumes that the data structure is acyclical.
        Specified by:
        toString in interface Json
        Parameters:
        indentFactor - The number of spaces to add to each level of indentation.
        indent - The indention of the top level.
        Returns:
        a printable, displayable, transmittable representation of the array.
      • toString

        public String toString​(int indentFactor,
                               int indent,
                               boolean alwaysQuoteKeys)
      • set

        public void set​(String property,
                        Object value)
        Specified by:
        set in interface Json