json-parser.h revision e0ba54c7f985fc403b41c6e36d6a7f44908b23f0
050975ee630c761ab237fce7b8f84fe189bb02d2Timo Sirainen/* A really simple JSON parser, which for now only needs to be able to parse
050975ee630c761ab237fce7b8f84fe189bb02d2Timo Sirainen a single { key: value, .. } object. */
050975ee630c761ab237fce7b8f84fe189bb02d2Timo Sirainenjson_parser_init(const unsigned char *data, unsigned int len);
050975ee630c761ab237fce7b8f84fe189bb02d2Timo Sirainenint json_parser_deinit(struct json_parser **parser, const char **error_r);
050975ee630c761ab237fce7b8f84fe189bb02d2Timo Sirainenbool json_parse_next(struct json_parser *parser, enum json_type *type_r,
050975ee630c761ab237fce7b8f84fe189bb02d2Timo Sirainen const char **value_r);