Uses of Class
com.github.openjson.JSONStringer
-
Uses of JSONStringer in com.github.openjson
Methods in com.github.openjson that return JSONStringerModifier and TypeMethodDescriptionJSONStringer.array()Begins encoding a new array.(package private) JSONStringerJSONStringer.close(JSONStringer.Scope empty, JSONStringer.Scope nonempty, String closeBracket) Closes the current scope by appending any necessary whitespace and the given bracket.protected JSONStringerCreates String representation of the key (property name) to this stringer Override this method to provide your own representation of the name.JSONStringer.endArray()Ends encoding the current array.JSONStringer.endObject()Ends encoding the current object.Encodeskey/valuepair to this stringer.Encodes the key (property name) to this stringer.JSONStringer.object()Begins encoding a new object.(package private) JSONStringerJSONStringer.open(JSONStringer.Scope empty, String openBracket) Enters a new scope by appending any necessary whitespace and the given bracket.JSONStringer.value(boolean value) Encodesvalueto this stringer.JSONStringer.value(double value) Encodesvalueto this stringer.JSONStringer.value(long value) Encodesvalueto this stringer.Encodesvalue.Methods in com.github.openjson with parameters of type JSONStringerModifier and TypeMethodDescriptionprotected voidJSONArray.encode(JSONStringer stringer) Encodes this array usingJSONStringerprovidedprotected voidJSONObject.encode(JSONStringer stringer) Encodes this object usingJSONStringerprovidedJSONArray.toString(JSONStringer stringer) Encodes this array usingJSONStringerprovidedJSONObject.toString(JSONStringer stringer) Encodes this object usingJSONStringerprovided