Package nonapi.io.github.classgraph.json
Class JSONObject
- java.lang.Object
-
- nonapi.io.github.classgraph.json.JSONObject
-
class JSONObject extends java.lang.Object
An intermediate object in the (de)serialization process, representing a JSON Object.
-
-
Constructor Summary
Constructors Constructor Description JSONObject(int sizeHint)
Constructor.JSONObject(java.util.List<java.util.Map.Entry<java.lang.String,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 JSONObject to a string.
-
-
-
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 JSONObject to a string.- Parameters:
jsonReferenceToId
- a map from json reference to idincludeNullValuedFields
- if true, include null valued fieldsdepth
- the nesting depthindentWidth
- the indent widthbuf
- the buf
-
-