JsonWriter

Class of android.util · JsonWriter.java · Android's reference

public final class JsonWriter implements java.io.Closeable

Writes one JSON value as a stream: compact, or indented after setIndent.

Constructors

public JsonWriter(Writer out) source

Methods

public void setIndent(String indent) source
public void setLenient(boolean lenient) source
public boolean isLenient() source
public JsonWriter beginArray() throws IOException source
public JsonWriter endArray() throws IOException source
public JsonWriter beginObject() throws IOException source
public JsonWriter endObject() throws IOException source
public JsonWriter name(String name) throws IOException source
public JsonWriter value(String value) throws IOException source
public JsonWriter nullValue() throws IOException source
public JsonWriter value(boolean value) throws IOException source
public JsonWriter value(double value) throws IOException source
public JsonWriter value(long value) throws IOException source
public JsonWriter value(Number value) throws IOException source
public void flush() throws IOException source
public void close() throws IOException 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.