Package nonapi.io.github.classgraph.json
Class JSONArray
java.lang.Object
nonapi.io.github.classgraph.json.JSONArray
An intermediate object in the (de)serialization process, representing a JSON array.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
toJSONString
(Map<ReferenceEqualityKey<JSONReference>, CharSequence> jsonReferenceToId, boolean includeNullValuedFields, int depth, int indentWidth, StringBuilder buf) Serialize this JSONArray to a string.
-
Field Details
-
items
Array items.
-
-
Constructor Details
-
JSONArray
public JSONArray()Constructor. -
JSONArray
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 idincludeNullValuedFields
- whether to include null-valued fieldsdepth
- the nesting depthindentWidth
- the indent widthbuf
- the buf
-