# JsonEncode_State Struct Reference
[JSON]

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

## Data Fields
JsonEncode_Step | steps [JSON_MAX_DEPTH]
| An array to keep track of the state of each step in the encoder.
int | depth
| The current depth of the encoder (how many elements have been opened).

## Detailed Description

The structure used to maintain the state of a JSON encode 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 JsonEncode_Init().

Definition at line 42 of file json.h.

## Field Documentation

int JsonEncode_State::depth

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

Definition at line 45 of file json.h.

JsonEncode_Step JsonEncode_State::steps[JSON_MAX_DEPTH]

An array to keep track of the state of each step in the encoder.

Definition at line 44 of file json.h.