|
@ -303,6 +303,8 @@ char *SuperNET_processJSON(struct supernet_info *myinfo,cJSON *json,char *remote |
|
|
if ( retjsonstr != 0 ) |
|
|
if ( retjsonstr != 0 ) |
|
|
{ |
|
|
{ |
|
|
if ( (retjsonstr[0] == '{' || retjsonstr[0] == '[') && (retjson= cJSON_Parse(retjsonstr)) != 0 ) |
|
|
if ( (retjsonstr[0] == '{' || retjsonstr[0] == '[') && (retjson= cJSON_Parse(retjsonstr)) != 0 ) |
|
|
|
|
|
{ |
|
|
|
|
|
if ( is_cJSON_Array(retjson) == 0 ) |
|
|
{ |
|
|
{ |
|
|
if ( j64bits(retjson,"tag") != tag ) |
|
|
if ( j64bits(retjson,"tag") != tag ) |
|
|
{ |
|
|
{ |
|
@ -312,7 +314,9 @@ char *SuperNET_processJSON(struct supernet_info *myinfo,cJSON *json,char *remote |
|
|
} |
|
|
} |
|
|
retstr = jprint(retjson,1); |
|
|
retstr = jprint(retjson,1); |
|
|
//printf("retstr.(%s) retjsonstr.%p retjson.%p\n",retstr,retjsonstr,retjson);
|
|
|
//printf("retstr.(%s) retjsonstr.%p retjson.%p\n",retstr,retjsonstr,retjson);
|
|
|
free(retjsonstr);//,strlen(retjsonstr)+1);
|
|
|
} |
|
|
|
|
|
else retstr = retjsonstr; |
|
|
|
|
|
free(retjsonstr); |
|
|
} else retstr = retjsonstr; |
|
|
} else retstr = retjsonstr; |
|
|
} |
|
|
} |
|
|
free(jsonstr); |
|
|
free(jsonstr); |
|
|