Lines Matching refs:json
270 static int obj_init(struct json_obj *json, char *data, size_t len) in obj_init() argument
274 lexer_init(&json->lex, data, len); in obj_init()
276 if (!lexer_next(&json->lex, &tok)) { in obj_init()
287 static int arr_init(struct json_obj *json, char *data, size_t len) in arr_init() argument
291 lexer_init(&json->lex, data, len); in arr_init()
293 if (!lexer_next(&json->lex, &tok)) { in arr_init()
324 static int obj_next(struct json_obj *json, in obj_next() argument
329 if (!lexer_next(&json->lex, &tok)) { in obj_next()
342 if (!lexer_next(&json->lex, &tok)) { in obj_next()
360 if (!lexer_next(&json->lex, &tok)) { in obj_next()
369 if (!lexer_next(&json->lex, &kv->value)) { in obj_next()
376 static int arr_next(struct json_obj *json, struct json_token *value) in arr_next() argument
378 if (!lexer_next(&json->lex, value)) { in arr_next()
387 if (!lexer_next(&json->lex, value)) { in arr_next()
830 int json_arr_separate_object_parse_init(struct json_obj *json, char *payload, size_t len) in json_arr_separate_object_parse_init() argument
832 return arr_init(json, payload, len); in json_arr_separate_object_parse_init()
835 int json_arr_separate_parse_object(struct json_obj *json, const struct json_obj_descr *descr, in json_arr_separate_parse_object() argument
840 if (!lexer_next(&json->lex, &tok)) { in json_arr_separate_parse_object()
847 if (!lexer_next(&json->lex, &tok)) { in json_arr_separate_parse_object()
856 return obj_parse(json, descr, descr_len, val); in json_arr_separate_parse_object()