Searched refs:JSON_STRING (Results 1 - 3 of 3) sorted by relevance
/systemd/src/test/ |
H A D | test-json.c | 46 else if (t == JSON_STRING) { 184 test_one("\"\"", JSON_STRING, "", JSON_END); 185 test_one("\"foo\"", JSON_STRING, "foo", JSON_END); 186 test_one("\"foo\\nfoo\"", JSON_STRING, "foo\nfoo", JSON_END); 187 test_one("{\"foo\" : \"bar\"}", JSON_OBJECT_OPEN, JSON_STRING, "foo", JSON_COLON, JSON_STRING, "bar", JSON_OBJECT_CLOSE, JSON_END); 188 test_one("{\"foo\" : [true, false]}", JSON_OBJECT_OPEN, JSON_STRING, "foo", JSON_COLON, JSON_ARRAY_OPEN, JSON_BOOLEAN, true, JSON_COMMA, JSON_BOOLEAN, false, JSON_ARRAY_CLOSE, JSON_OBJECT_CLOSE, JSON_END); 189 test_one("\"\xef\xbf\xbd\"", JSON_STRING, "\xef\xbf\xbd", JSON_END); 190 test_one("\"\\ufffd\"", JSON_STRING, "\xef\xbf\xbd", JSON_END); 194 test_one("\"\\ud801\\udc37\"", JSON_STRING, "\xf [all...] |
/systemd/src/basic/ |
H A D | json.h | 37 JSON_STRING, enumerator in enum:__anon16
|
H A D | json.c | 300 return JSON_STRING; 801 case JSON_STRING:
|
Completed in 12 milliseconds