Class JSONArray

java.lang.Object
nonapi.io.github.classgraph.json.JSONArray

class JSONArray extends Object
An intermediate object in the (de)serialization process, representing a JSON array.
  • Field Details

  • Constructor Details

    • JSONArray

      public JSONArray()
      Constructor.
    • JSONArray

      public JSONArray(List<Object> items)
      Constructor.
      Parameters:
      items - the items
  • Method Details

    • toJSONString

      void toJSONString(Map<ReferenceEqualityKey<JSONReference>,CharSequence> jsonReferenceToId, boolean includeNullValuedFields, int depth, int indentWidth, StringBuilder buf)
      Serialize this JSONArray to a string.
      Parameters:
      jsonReferenceToId - the map from json reference to id
      includeNullValuedFields - whether to include null-valued fields
      depth - the nesting depth
      indentWidth - the indent width
      buf - the buf