#include "c_types.h"
#include "json/json.h"
Go to the source code of this file.
◆ JSONPARSE_MAX_DEPTH
#define JSONPARSE_MAX_DEPTH 10 |
◆ jsonparse_copy_value()
int jsonparse_copy_value |
( |
struct jsonparse_state * |
state, |
|
|
char * |
buf, |
|
|
int |
buf_size |
|
) |
| |
◆ jsonparse_get_len()
◆ jsonparse_get_type()
◆ jsonparse_get_value_as_int()
◆ jsonparse_get_value_as_long()
◆ jsonparse_get_value_as_ulong()
unsigned long jsonparse_get_value_as_ulong |
( |
struct jsonparse_state * |
state | ) |
|
◆ jsonparse_next()
◆ jsonparse_setup()
void jsonparse_setup |
( |
struct jsonparse_state * |
state, |
|
|
const char * |
json, |
|
|
int |
len |
|
) |
| |
Initialize a JSON parser state.
- Parameters
-
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. |
◆ jsonparse_strcmp_value()
int jsonparse_strcmp_value |
( |
struct jsonparse_state * |
state, |
|
|
const char * |
str |
|
) |
| |