JsonDecode_State Struct Reference
[JSON]

The structure used to maintain the state of a JSON decode process. More...


Data Fields

JsonDecode_Step steps [JSON_MAX_DEPTH]
 An array to keep track of each step of the decoder.
int depth
 The current depth of the decoder (how many elements have been opened).
bool gotcomma
 Used internally by the decoder.
void * context
 A pointer to the user context.
char * p
 A pointer to the data.
int len
 The current length.

Detailed Description

The structure used to maintain the state of a JSON decode process.

You'll need to have one of these for each JSON string you want to encode. The same variable can be reused after resetting it with a call to JsonDecode_Init().

Definition at line 61 of file json.h.


Field Documentation

A pointer to the user context.

Definition at line 65 of file json.h.

The current depth of the decoder (how many elements have been opened).

Definition at line 63 of file json.h.

Used internally by the decoder.

Definition at line 64 of file json.h.

The current length.

Definition at line 67 of file json.h.

A pointer to the data.

Definition at line 66 of file json.h.

JsonDecode_Step JsonDecode_State::steps[JSON_MAX_DEPTH]

An array to keep track of each step of the decoder.

Definition at line 62 of file json.h.