Unit 'JsonScanner' Package
[Overview][Resource strings][Constants][Types][Classes][Index] [#fcl]

TJSONScanner.Create

Create JSON scanner instance

Declaration

Source position: jsonscanner.pp line 129

public constructor TJSONScanner.Create(

  Source: TStream;

  AUseUTF8: Boolean = True

); overload;

constructor TJSONScanner.Create(

  Source: TStream;

  AOptions: TJSONOptions

); overload;

constructor TJSONScanner.Create(

  const aSource: RawByteString;

  AUseUTF8: Boolean = True

); overload;

constructor TJSONScanner.Create(

  const aSource: RawByteString;

  AOptions: TJSONOptions

); overload;

Arguments

Source

  

Input stream containing JSON data

AUseUTF8

  

Enable UTF-8 string encoding

Arguments

Source

  

Input stream containing JSON data

AOptions

  

Scanner options set

Arguments

aSource

  

Raw byte string containing JSON data

AUseUTF8

  

Enable UTF-8 string encoding

Arguments

aSource

  

Raw byte string containing JSON data

AOptions

  

Scanner options set

Description

Creates a new JSON scanner instance. Can be initialized with either a TStream or a raw byte string source. Accepts optional scanning options to control parsing behavior.

Errors

May raise exceptions during source loading from streams.

See also

TJSONOptions

  

Set of JSON scanner options

DefaultOptions

  

Default scanner options


Documentation generated on: Jan 27 2026