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