Lines Matching refs:json
65 const unsigned char *json; member
72 return (const char*) (global_error.json + global_error.position); in cJSON_GetErrorPtr()
1006 global_error.json = NULL; in cJSON_ParseWithOpts()
1056 local_error.json = (const unsigned char*)value; in cJSON_ParseWithOpts()
1070 *return_parse_end = (const char*)local_error.json + local_error.position; in cJSON_ParseWithOpts()
2629 CJSON_PUBLIC(void) cJSON_Minify(char *json) in cJSON_Minify() argument
2631 unsigned char *into = (unsigned char*)json; in cJSON_Minify()
2633 if (json == NULL) in cJSON_Minify()
2638 while (*json) in cJSON_Minify()
2640 if (*json == ' ') in cJSON_Minify()
2642 json++; in cJSON_Minify()
2644 else if (*json == '\t') in cJSON_Minify()
2647 json++; in cJSON_Minify()
2649 else if (*json == '\r') in cJSON_Minify()
2651 json++; in cJSON_Minify()
2653 else if (*json=='\n') in cJSON_Minify()
2655 json++; in cJSON_Minify()
2657 else if ((*json == '/') && (json[1] == '/')) in cJSON_Minify()
2660 while (*json && (*json != '\n')) in cJSON_Minify()
2662 json++; in cJSON_Minify()
2665 else if ((*json == '/') && (json[1] == '*')) in cJSON_Minify()
2668 while (*json && !((*json == '*') && (json[1] == '/'))) in cJSON_Minify()
2670 json++; in cJSON_Minify()
2672 json += 2; in cJSON_Minify()
2674 else if (*json == '\"') in cJSON_Minify()
2677 *into++ = (unsigned char)*json++; in cJSON_Minify()
2678 while (*json && (*json != '\"')) in cJSON_Minify()
2680 if (*json == '\\') in cJSON_Minify()
2682 *into++ = (unsigned char)*json++; in cJSON_Minify()
2684 *into++ = (unsigned char)*json++; in cJSON_Minify()
2686 *into++ = (unsigned char)*json++; in cJSON_Minify()
2691 *into++ = (unsigned char)*json++; in cJSON_Minify()