JSONStringer

Class of org.json · JSONStringer.java · Android's reference

public class JSONStringer

Writes JSON text, compact or indented, as Android's does.

Constructors

public JSONStringer() source

Methods

public JSONStringer array() throws JSONException source
public JSONStringer endArray() throws JSONException source
public JSONStringer object() throws JSONException source
public JSONStringer endObject() throws JSONException source
public JSONStringer value(Object value) throws JSONException source
public JSONStringer value(boolean value) throws JSONException source
public JSONStringer value(double value) throws JSONException source
public JSONStringer value(long value) throws JSONException source
public JSONStringer key(String name) throws JSONException source
public String toString() source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.