json.JSONWriter methods
Methods for the json.JSONWriter
class.
Name | Description |
---|---|
|
Constructor of a JSONWriter object. |
Name | Description |
---|---|
|
Defines the charset used on the output stream. In Windows, the system character set is based
on the language settings. In Linux, the
locale is defined by the LANG and LC_ALL variables, and you can check the system locale with the
localctl command, especially on Debian-based
systems. |
Name | Description |
---|---|
|
Sets the output stream of the JSONWriter object to a file or an URL, and starts streaming data. |
|
Sets the output stream of the JSONWriter object to a PIPE, and starts the streaming. |
|
Sets the output stream of the JSONWriter object to a TEXT large object, and starts the streaming. |
|
Sets a property of a JSONWriter object. |
|
Sets the value of a JSONWriter object. |
|
Sets a boolean value of a JSONWriter object. |
|
Sets the null value of a JSONWriter object. |
|
Returns the number of bytes written by the JSONWriter in the current stream. |
Name | Description |
---|---|
|
Closes any open tokens and writes the corresponding end JSON document token. |
|
Begins JSON encoding to the JSONWriter stream. |
|
Writes a JSON end object token to the JSONWriter stream. |
|
Writes a JSON start object token to the JSONWriter stream. |
|
Writes a JSON end array tag to the JSONWriter stream. |
|
Writes a JSON start array token to the JSONWriter stream. |
|
Closes the JSONWriter streaming, and releases all associated resources. |