#include <stddef.h>
Go to the source code of this file.
§ jsmnerr
Enumerator |
---|
JSMN_ERROR_NOMEM | |
JSMN_ERROR_INVAL | |
JSMN_ERROR_PART | |
Definition at line 25 of file jsmn.h.
§ jsmntype_t
JSON type identifier.
Basic types are: o Object o Array o String o Other primitive: number, boolean (true/false) or null
Enumerator |
---|
JSMN_UNDEFINED | |
JSMN_OBJECT | |
JSMN_ARRAY | |
JSMN_STRING | |
JSMN_PRIMITIVE | |
Definition at line 17 of file jsmn.h.
§ jsmn_init()
Create JSON parser over an array of tokens.
Create JSON parser over an array of tokens.
Definition at line 306 of file jsmn.c.
§ jsmn_parse()
int jsmn_parse |
( |
jsmn_parser * |
parser, |
|
|
const char * |
js, |
|
|
size_t |
len, |
|
|
jsmntok_t * |
tokens, |
|
|
unsigned int |
num_tokens |
|
) |
| |
Run JSON parser.
It parses a JSON data string into and array of tokens, each describing a single JSON object.
Run JSON parser.
Definition at line 151 of file jsmn.c.