json.JSONWriter.getSize

Returns the number of bytes written by the JSONWriter in the current stream.

Syntax

getSize()
  RETURNS INTEGER

Usage

This method returns the number of bytes written by the JSONWriter since the start of the current stream. It returns -1 if no bytes have been written.

For example, this method can be used to give an indication of progress when processing a large file.