System.JSON.Writers.TJsonWriter.TState

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TState = (Start, &Property, ObjectStart, &Object, ArrayStart, &Array, ConstructorStart, &Constructor, Closed, Error);

C++

enum class DECLSPEC_DENUM TState : unsigned char { Start, Property, ObjectStart, Object, ArrayStart, Array, ConstructorStart, Constructor, Closed, Error };

Properties

Type Visibility Source Unit Parent
enum protected
System.JSON.Writers.pas
System.JSON.Writers.hpp
System.JSON.Writers TJsonWriter

Description

TState enumerates all the possible states of the JSON writer.

State Range Value Description

Start

0

A write method has not been called.

&Property

1

A property is being written.

ObjectStart

2

The beginning of a JSON object is being written.

&Object

3

An object is being written.

ArrayStart

4

The beginning of a JSON array is being written.

ConstructorStart

5

The beginning of a constructor is being written.

&Constructor

6

A constructor is being written.

Closed

6

The close method has been called.

Error

6

An exception has been thrown.

See Also