diff --git a/cJSON.c b/cJSON.c index acfba16..0875fe6 100644 --- a/cJSON.c +++ b/cJSON.c @@ -563,7 +563,7 @@ static char *print_object(cJSON *item,int depth,int fmt,printbuffer *p) else out=(char*)cJSON_malloc(fmt?depth+4:3); if (!out) return 0; ptr=out;*ptr++='{'; - if (fmt) {*ptr++='\n';for (i=0;i