Lines Matching refs:JSMN_PRIMITIVE
19 JSMN_PRIMITIVE, "0")); in test_object()
26 JSMN_OBJECT, -1, -1, 3, JSMN_STRING, "Day", 1, JSMN_PRIMITIVE, in test_object()
27 "26", JSMN_STRING, "Month", 1, JSMN_PRIMITIVE, "9", JSMN_STRING, in test_object()
28 "Year", 1, JSMN_PRIMITIVE, "12")); in test_object()
30 JSMN_STRING, "a", 1, JSMN_PRIMITIVE, "0", JSMN_STRING, "b", 1, in test_object()
54 check(parse("[10]", 2, 2, JSMN_ARRAY, -1, -1, 1, JSMN_PRIMITIVE, "10")); in test_array()
63 JSMN_STRING, "boolVar", 1, JSMN_PRIMITIVE, "true")); in test_primitive()
65 JSMN_STRING, "boolVar", 1, JSMN_PRIMITIVE, "false")); in test_primitive()
67 JSMN_STRING, "nullVar", 1, JSMN_PRIMITIVE, "null")); in test_primitive()
69 "intVar", 1, JSMN_PRIMITIVE, "12")); in test_primitive()
71 JSMN_STRING, "floatVar", 1, JSMN_PRIMITIVE, "12.345")); in test_primitive()
134 check(tokeq(js, tok, 6, JSMN_ARRAY, -1, -1, 3, JSMN_PRIMITIVE, "1", in test_partial_array()
135 JSMN_PRIMITIVE, "true", JSMN_ARRAY, -1, -1, 2, JSMN_PRIMITIVE, in test_partial_array()
165 check(tokeq(js, toklarge, 4, JSMN_ARRAY, -1, -1, 3, JSMN_PRIMITIVE, "1", in test_array_nomem()
166 JSMN_PRIMITIVE, "true", JSMN_ARRAY, -1, -1, 2, JSMN_PRIMITIVE, in test_array_nomem()
184 check(tokeq(js, tok, 4, JSMN_PRIMITIVE, "key1", JSMN_STRING, "value", 0, in test_unquoted_keys()
185 JSMN_PRIMITIVE, "key2", JSMN_PRIMITIVE, "123")); in test_unquoted_keys()
232 JSMN_PRIMITIVE, "0")); in test_input_length()
287 check(parse(js, 2, 2, JSMN_PRIMITIVE, "a", JSMN_PRIMITIVE, "0garbage")); in test_nonstrict()
290 check(parse(js, 6, 6, JSMN_PRIMITIVE, "Day", JSMN_PRIMITIVE, "26", in test_nonstrict()
291 JSMN_PRIMITIVE, "Month", JSMN_PRIMITIVE, "Sep", JSMN_PRIMITIVE, in test_nonstrict()
292 "Year", JSMN_PRIMITIVE, "12")); in test_nonstrict()
296 check(parse(js, 2, 2, JSMN_STRING, "key {1", 1, JSMN_PRIMITIVE, "1234")); in test_nonstrict()
314 JSMN_PRIMITIVE, "1234")); in test_unmatched_brackets()
325 JSMN_PRIMITIVE, "1")); in test_object_key()