TBaseJSONReader.Create¶
Creates a new JSON reader with specified source and options
Declaration¶
Source position: jsonreader.pp line 69
public
constructor Create(Source: TStream; AUseUTF8: Boolean=True); overload; overload;
constructor Create(const Source: RawByteString; AUseUTF8: Boolean=True)
; overload; overload;
constructor Create(Source: TStream; AOptions: TJSONOptions); overload; overload;
constructor Create(const Source: RawByteString; AOptions: TJSONOptions)
; overload; overload;
constructor Create(const Source: UnicodeString; AOptions: TJSONOptions)
; overload; overload;
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.