Skip to content

TJSONConsumerReader.Execute

Starts the JSON parsing process using the assigned consumer

Declaration

Source position: jsonreader.pp line 172

public 
procedure TJSONConsumerReader.Execute;

Description

Execute starts the JSON parsing process. As JSON elements are encountered during parsing, the corresponding methods in the assigned IJSONConsumer are called if a consumer is assigned. The method processes the entire JSON input until completion or until an error is encountered.

Errors

Raises EJSONParser when invalid JSON syntax is encountered.

See also

Name Description
TBaseJSONReader.DoExecute
Consumer JSON consumer object that processes parsed elements