Lines Matching refs:json
27 /* JSON parser in C. */
495 /* if we require null-terminated JSON without appended garbage, skip and
1325 void cJSON_Minify(char *json) {
1326 char *into = json;
1327 while (*json) {
1328 if (*json == ' ')
1329 json++;
1330 else if (*json == '\t')
1331 json++; /* Whitespace characters. */
1332 else if (*json == '\r')
1333 json++;
1334 else if (*json == '\n')
1335 json++;
1336 else if (*json == '/' && json[1] == '/')
1337 while (*json && *json != '\n')
1338 json++; /* double-slash comments, to end of line. */
1339 else if (*json == '/' && json[1] == '*') {
1340 while (*json && !(*json == '*' && json[1] == '/'))
1341 json++;
1342 json += 2;
1344 else if (*json == '\"') {
1345 *into++ = *json++;
1346 while (*json && *json != '\"') {
1347 if (*json == '\\')
1348 *into++ = *json++;
1349 *into++ = *json++;
1351 *into++ = *json++;
1354 *into++ = *json++; /* All other characters. */