json.JSONReader.getSize

Returns the number of bytes read by the JSONReader in the current stream.

Syntax

getSize()
  RETURNS INTEGER

Usage

This method returns the number of bytes read by the JSONReader 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.