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

TBaseJSONReader.Create

Creates a new JSON reader with specified source and options

Declaration

Source position: jsonreader.pp line 69

public constructor TBaseJSONReader.Create(

  Source: TStream;

  AUseUTF8: Boolean = True

); overload;

constructor TBaseJSONReader.Create(

  const Source: RawByteString;

  AUseUTF8: Boolean = True

); overload;

constructor TBaseJSONReader.Create(

  Source: TStream;

  AOptions: TJSONOptions

); overload;

constructor TBaseJSONReader.Create(

  const Source: RawByteString;

  AOptions: TJSONOptions

); overload;

constructor TBaseJSONReader.Create(

  const Source: UnicodeString;

  AOptions: TJSONOptions

); overload;

Arguments

Source

  

JSON source data stream, string or unicode string

AUseUTF8

  

Whether to use UTF-8 encoding for string processing

Arguments

Source

  

JSON source data stream, string or unicode string

AUseUTF8

  

Whether to use UTF-8 encoding for string processing

Arguments

Source

  

JSON source data stream, string or unicode string

AOptions

  

JSON parsing options to control reader behavior

Arguments

Source

  

JSON source data stream, string or unicode string

AOptions

  

JSON parsing options to control reader behavior

Arguments

Source

  

JSON source data stream, string or unicode string

AOptions

  

JSON parsing options to control reader behavior

Description

Creates a new TBaseJSONReader instance with the specified JSON source and parsing options. The constructor initializes the internal TJSONScanner with the provided source and options. Multiple overloaded versions are available for different source types and option configurations.

Errors

May raise exceptions if the source cannot be accessed or is invalid.

See also

Destroy

  

Destroys the JSON reader and frees resources

Options

  

JSON parsing options that control reader behavior


Documentation generated on: Jan 27 2026