Skip to content

TJSONDataWriter.NextElement

Prepare for the next element in a JSON array

Declaration

Source position: jsonwriter.pp line 84

public 
procedure TJSONDataWriter.NextElement;  override;

Description

NextElement validates that the current context is appropriate for writing the next array element. This method must be called before each value when writing array elements.

Errors

EJSONWriter is raised if the current value is not a structured value.

See also

Name Description
StartArray Start writing a JSON array
EndArray End writing a JSON array
EJSONWriter Exception class for JSON writing errors