Example usage for Java android.util JsonWriter fields, constructors, methods, implement or subclass
The text is from its open source code.
JsonWriter(Writer out) Creates a new instance that writes a JSON-encoded stream to out . |
JsonWriter | beginArray() Begins encoding a new array. |
JsonWriter | beginObject() Begins encoding a new object. |
void | close() Flushes and closes this writer and the underlying Writer . |
JsonWriter | endArray() Ends encoding the current array. |
JsonWriter | endObject() Ends encoding the current object. |
JsonWriter | name(String name) Encodes the property name. |
void | setIndent(String indent) Sets the indentation string to be repeated for each level of indentation in the encoded document. |
JsonWriter | value(String value) Encodes value . |
JsonWriter | value(boolean value) Encodes value . |
JsonWriter | value(double value) Encodes value . |
JsonWriter | value(long value) Encodes value . |
JsonWriter | value(Number value) Encodes value . |