Searched refs:JSMN_ERROR_INVAL (Results 1 – 4 of 4) sorted by relevance
/external/jsmn/test/ |
D | tests.c | 52 check(parse("{\"a\"\n0}", JSMN_ERROR_INVAL, 3)); in test_object() 53 check(parse("{\"a\", 0}", JSMN_ERROR_INVAL, 3)); in test_object() 54 check(parse("{\"a\": {2}}", JSMN_ERROR_INVAL, 3)); in test_object() 55 check(parse("{\"a\": {2: 3}}", JSMN_ERROR_INVAL, 3)); in test_object() 56 check(parse("{\"a\": {\"a\": 2 3}}", JSMN_ERROR_INVAL, 5)); in test_object() 75 check(parse("{\"a\": 1]", JSMN_ERROR_INVAL, 3)); in test_array() 136 check(parse("{\"a\":\"str\\uFFGFstr\"}", JSMN_ERROR_INVAL, 3)); in test_string() 137 check(parse("{\"a\":\"str\\u@FfF\"}", JSMN_ERROR_INVAL, 3)); in test_string() 138 check(parse("{{\"a\":[\"\\u028\"]}", JSMN_ERROR_INVAL, 4)); in test_string() 371 check(parse(js, JSMN_ERROR_INVAL, 2)); in test_unmatched_brackets() [all …]
|
/external/jsmn/ |
D | jsmn.c | 54 return JSMN_ERROR_INVAL; in jsmn_parse_primitive() 131 return JSMN_ERROR_INVAL; in jsmn_parse_string() 140 return JSMN_ERROR_INVAL; in jsmn_parse_string() 188 return JSMN_ERROR_INVAL; in jsmn_parse() 194 return JSMN_ERROR_INVAL; in jsmn_parse() 202 return JSMN_ERROR_INVAL; in jsmn_parse() 213 return JSMN_ERROR_INVAL; in jsmn_parse() 221 if (i == -1) return JSMN_ERROR_INVAL; in jsmn_parse() 271 return JSMN_ERROR_INVAL; in jsmn_parse() 288 return JSMN_ERROR_INVAL; in jsmn_parse()
|
D | jsmn.h | 29 JSMN_ERROR_INVAL = -2, enumerator
|
D | README.md | 152 * `JSMN_ERROR_INVAL` - bad token, JSON string is corrupted
|