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) JSONStringer
JSONStringer.close
(JSONStringer.Scope empty, JSONStringer.Scope nonempty, String closeBracket) Closes the current scope by appending any necessary whitespace and the given bracket.protected JSONStringer
Creates 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
/value
pair to this stringer.Encodes the key (property name) to this stringer.JSONStringer.object()
Begins encoding a new object.(package private) JSONStringer
JSONStringer.open
(JSONStringer.Scope empty, String openBracket) Enters a new scope by appending any necessary whitespace and the given bracket.JSONStringer.value
(boolean value) Encodesvalue
to this stringer.JSONStringer.value
(double value) Encodesvalue
to this stringer.JSONStringer.value
(long value) Encodesvalue
to this stringer.Encodesvalue
.Methods in com.github.openjson with parameters of type JSONStringerModifier and TypeMethodDescriptionprotected void
JSONArray.encode
(JSONStringer stringer) Encodes this array usingJSONStringer
providedprotected void
JSONObject.encode
(JSONStringer stringer) Encodes this object usingJSONStringer
providedJSONArray.toString
(JSONStringer stringer) Encodes this array usingJSONStringer
providedJSONObject.toString
(JSONStringer stringer) Encodes this object usingJSONStringer
provided