Lines Matching refs:error
39 json_error_t error;
45 json = json_load_callback(greedy_reader, &s, 0, &error);
55 json = json_load_callback(greedy_reader, &s, 0, &error);
60 if (strcmp(error.source, "<callback>") != 0) {
61 fail("json_load_callback returned an invalid error source");
63 if (strcmp(error.text, "']' expected near end of file") != 0) {
64 fail("json_load_callback returned an invalid error message for an unclosed top-level array");
67 json = json_load_callback(NULL, NULL, 0, &error);
72 if (strcmp(error.text, "wrong arguments") != 0) {
73 fail("json_load_callback returned an invalid error message for a NULL load callback");