|
|
@ -1,6 +1,10 @@
|
|
|
|
#ifndef __JSMN_H_
|
|
|
|
#ifndef __JSMN_H_
|
|
|
|
#define __JSMN_H_
|
|
|
|
#define __JSMN_H_
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* JSON type identifier. Basic types are:
|
|
|
|
* JSON type identifier. Basic types are:
|
|
|
|
* o Object
|
|
|
|
* o Object
|
|
|
@ -61,7 +65,11 @@ void jsmn_init(jsmn_parser *parser);
|
|
|
|
* Run JSON parser. It parses a JSON data string into and array of tokens, each describing
|
|
|
|
* Run JSON parser. It parses a JSON data string into and array of tokens, each describing
|
|
|
|
* a single JSON object.
|
|
|
|
* a single JSON object.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
jsmnerr_t jsmn_parse(jsmn_parser *parser, const char *js,
|
|
|
|
jsmnerr_t jsmn_parse(jsmn_parser *parser, const char *js, int js_length,
|
|
|
|
jsmntok_t *tokens, unsigned int num_tokens);
|
|
|
|
jsmntok_t *tokens, unsigned int num_tokens);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* __JSMN_H_ */
|
|
|
|
#endif /* __JSMN_H_ */
|
|
|
|