typedef enum JSON_STACK_ITEM_TYPE_E_ {
JSON_UNKNOWN = 0,
JSON_OBJECT = 1,
JSON_ARRAY = 2
} JSON_STACK_ITEM_TYPE;
typedef struct json_stack_item_t_ {
JSON_STACK_ITEM_TYPE type:2;
unsigned int has_items:1;
} json_stack_item_t, *json_stack_item_h;
typedef struct lews_JSON_context_t_ {
lews_connection_context_h ctx;
json_stack_item_t stack[LEWS_JSON_STACK_SIZE];
mco_uint1 stack_pos;
} lews_JSON_context_t, *lews_JSON_context_h;
The lews_JSON_context_t structure encapsulates the state required for incremental JSON serialization. Its contents are managed exclusively by the LEWS JSON API and must not be accessed or altered by the application.