The json.JSONReader class

The json.JSONReader class provides an interface compatible with JSON streaming that reads data in a JSON format from an input source.

The json.JSONReader class is provided in the json C-Extension library. To use the json.JSONReader class, you must import the json package in your program:
IMPORT json

The json.JSONReader class implements a method to create a json.JSONReader object.

The purpose of the json.JSONReader class is to read JSON encoded text as a stream of tokens. The stream includes both literal values (strings, numbers, booleans, and null) as well as the begin and end delimiters of JSON's two structured types (objects and arrays). The tokens are read in the same order that they appear in the JSON document.