Unit 'JsonReader' Package
[Overview][Types][Classes][Index] [#fcl]

Reference for unit 'JsonReader'

Event-based JSON reading with SAX-like parsing

uses

  System,

  Classes,

  sysutils,

  fpJson,

  

JSON support for Free Pascal.

  JsonScanner;

  

JSON lexical scanner

Overview

The jsonreader unit provides event-based JSON reading functionality. It offers a SAX-like approach to JSON parsing where events are fired as JSON elements are encountered during parsing. This allows for efficient processing of large JSON documents without loading the entire structure into memory. The unit includes abstract base classes, event-driven readers, and interface-based consumers for flexible JSON processing.

Related topics

JSONReaderStreamUsage

  

Using JSON readers with streams and files

JSONConsumerUsage

  

Using TJSONConsumerReader with IJSONConsumer interface

JSONEventReaderUsage

  

Using TJSONEventReader for event-based JSON parsing


Documentation generated on: Jan 27 2026