System.JSON.Readers.TJsonReader.SupportMultipleContent
Delphi
property SupportMultipleContent: Boolean read FSupportMultipleContent write FSupportMultipleContent;
C++
__property bool SupportMultipleContent = {read=FSupportMultipleContent, write=FSupportMultipleContent, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | System.JSON.Readers.pas System.JSON.Readers.hpp |
System.JSON.Readers | TJsonReader |
Description
Gets or sets a value indicating whether multiple pieces of JSON content can be read from a continuous stream without erroring.
SupportMultipleContent type is boolean:
True
: The reader supports reading multiple pieces of JSON content.False
: The reader does not support reading multiple pieces of JSON content.
- Note: SupportMultipleContent is set to
False
by default.
When the reader finishes reading the JSON content, it calls the SetFinished method. If SupportMultipleContent is set to False
the current state of the reader changes to Finished
, if SupportMultipleContent is set to True
the reader state changes to Start
and the reader continues reading the remaining JSON content.
If SupportMultipleContent is set to False
and there is additional JSON content to read, an exception raises:
Additional text encountered after finished reading JSON content: <next char> + <path> + <line> + <position within the line>.