Searched refs:JSMN_OBJECT (Results 1 – 5 of 5) sorted by relevance
/external/jsmn/test/ |
D | tests.c | 10 check(parse("{}", 1, 1, JSMN_OBJECT, 0, 2, 0)); in test_empty() 12 check(parse("[{},{}]", 3, 3, JSMN_ARRAY, 0, 7, 2, JSMN_OBJECT, 1, 3, 0, in test_empty() 13 JSMN_OBJECT, 4, 6, 0)); in test_empty() 18 check(parse("{\"a\":0}", 3, 3, JSMN_OBJECT, 0, 7, 1, JSMN_STRING, "a", 1, in test_object() 20 check(parse("{\"a\":[]}", 3, 3, JSMN_OBJECT, 0, 8, 1, JSMN_STRING, "a", 1, in test_object() 22 check(parse("{\"a\":{},\"b\":{}}", 5, 5, JSMN_OBJECT, -1, -1, 2, JSMN_STRING, in test_object() 23 "a", 1, JSMN_OBJECT, -1, -1, 0, JSMN_STRING, "b", 1, JSMN_OBJECT, in test_object() 26 JSMN_OBJECT, -1, -1, 3, JSMN_STRING, "Day", 1, JSMN_PRIMITIVE, in test_object() 29 check(parse("{\"a\": 0, \"b\": \"c\"}", 5, 5, JSMN_OBJECT, -1, -1, 2, in test_object() 62 check(parse("{\"boolVar\" : true }", 3, 3, JSMN_OBJECT, -1, -1, 1, in test_primitive() [all …]
|
/external/jsmn/ |
D | jsmn.h | 54 JSMN_OBJECT = 1, enumerator 298 if (t->type == JSMN_OBJECT) { in jsmn_parse() 307 token->type = (c == '{' ? JSMN_OBJECT : JSMN_ARRAY); in jsmn_parse() 316 type = (c == '}' ? JSMN_OBJECT : JSMN_ARRAY); in jsmn_parse() 385 tokens[parser->toksuper].type != JSMN_OBJECT) { in jsmn_parse() 390 if (tokens[i].type == JSMN_ARRAY || tokens[i].type == JSMN_OBJECT) { in jsmn_parse() 419 if (t->type == JSMN_OBJECT || in jsmn_parse()
|
D | README.md | 116 JSMN_OBJECT = 1,
|
/external/jsmn/example/ |
D | simple.c | 38 if (r < 1 || t[0].type != JSMN_OBJECT) { in main()
|
D | jsondump.c | 40 } else if (t->type == JSMN_OBJECT) { in dump()
|