Sign in Join
FPDoc Onlineexperiment

TJSONScanner.Create constructor deprecated

Member of TJSONScannerpublicIn unit JsonScanner

Create JSON scanner instance

Declaration

pascal
constructor Create(Source: TStream; AUseUTF8: Boolean=True); overload
constructor Create(Source: TStream; AOptions: TJSONOptions); overload
constructor Create(const aSource: RawByteString; AUseUTF8: Boolean=True)
 ; overload
constructor Create(const aSource: RawByteString; AOptions: TJSONOptions)
 ; overload

Arguments

Source

Input stream containing JSON data

AUseUTF8

Enable UTF-8 string encoding

AOptions

Scanner options set

aSource

Raw byte string containing JSON data

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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.