Lines Matching refs:JSON_STRING
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, "\xf0\x90\x90\xb7", JSON_END);