ESP8266 Centre + NB
|
结构体 | |
struct | jsonparse_state |
宏定义 | |
#define | JSONPARSE_MAX_DEPTH 10 |
函数 | |
void | jsonparse_setup (struct jsonparse_state *state, const char *json, int len) |
Initialize a JSON parser state. 更多... | |
int | jsonparse_next (struct jsonparse_state *state) |
int | jsonparse_copy_value (struct jsonparse_state *state, char *buf, int buf_size) |
int | jsonparse_get_value_as_int (struct jsonparse_state *state) |
long | jsonparse_get_value_as_long (struct jsonparse_state *state) |
unsigned long | jsonparse_get_value_as_ulong (struct jsonparse_state *state) |
int | jsonparse_get_len (struct jsonparse_state *state) |
int | jsonparse_get_type (struct jsonparse_state *state) |
int | jsonparse_strcmp_value (struct jsonparse_state *state, const char *str) |
#define JSONPARSE_MAX_DEPTH 10 |
void jsonparse_setup | ( | struct jsonparse_state * | state, |
const char * | json, | ||
int | len | ||
) |
Initialize a JSON parser state.
state | A pointer to a JSON parser state |
json | The string to parse as JSON |
len | The length of the string to parse This function initializes a JSON parser state for parsing a string as JSON. |
int jsonparse_next | ( | struct jsonparse_state * | state | ) |
int jsonparse_copy_value | ( | struct jsonparse_state * | state, |
char * | buf, | ||
int | buf_size | ||
) |
int jsonparse_get_value_as_int | ( | struct jsonparse_state * | state | ) |
long jsonparse_get_value_as_long | ( | struct jsonparse_state * | state | ) |
unsigned long jsonparse_get_value_as_ulong | ( | struct jsonparse_state * | state | ) |
int jsonparse_get_len | ( | struct jsonparse_state * | state | ) |
int jsonparse_get_type | ( | struct jsonparse_state * | state | ) |
int jsonparse_strcmp_value | ( | struct jsonparse_state * | state, |
const char * | str | ||
) |