Class JSONArray


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

      Fields 
      Modifier and Type Field Description
      (package private) java.util.List<java.lang.Object> items
      Array items.
    • Constructor Summary

      Constructors 
      Constructor Description
      JSONArray()
      Constructor.
      JSONArray​(java.util.List<java.lang.Object> items)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void toJSONString​(java.util.Map<ReferenceEqualityKey<JSONReference>,​java.lang.CharSequence> jsonReferenceToId, boolean includeNullValuedFields, int depth, int indentWidth, java.lang.StringBuilder buf)
      Serialize this JSONArray to a string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • items

        java.util.List<java.lang.Object> items
        Array items.
    • Constructor Detail

      • JSONArray

        public JSONArray()
        Constructor.
      • JSONArray

        public JSONArray​(java.util.List<java.lang.Object> items)
        Constructor.
        Parameters:
        items - the items
    • Method Detail

      • toJSONString

        void toJSONString​(java.util.Map<ReferenceEqualityKey<JSONReference>,​java.lang.CharSequence> jsonReferenceToId,
                          boolean includeNullValuedFields,
                          int depth,
                          int indentWidth,
                          java.lang.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