Begins encoding a new array.
Begins encoding a new object.
Flushes and closes this writer and the underlying Writer.
Ends encoding the current array.
Ends encoding the current object.
Ensures all buffered data is written to the underlying Writer and flushes that writer.
Returns true if object members are serialized when their value is null.
Returns true if this writer writes JSON that's safe for inclusion in HTML and XML documents.
Returns true if this writer has relaxed syntax rules.
Writes value directly to the writer without quoting or escaping.
Encodes null.
Configure this writer to emit JSON that's safe for direct inclusion in HTML and XML documents.
Sets the indentation string to be repeated for each level of indentation in the encoded document.
Configure this writer to relax its syntax rules.
Sets whether object members are serialized when their value is null.
Writes a JSON (RFC 7159) encoded value to a stream, one token at a time. The stream includes both literal values (strings, numbers, booleans and nulls) as well as the begin and end delimiters of objects and arrays.
See com.google.gson.stream.JsonWriter for full documentation