diff --git a/iguana/iguana_rpc.c b/iguana/iguana_rpc.c index b90950a6f..4095dd310 100755 --- a/iguana/iguana_rpc.c +++ b/iguana/iguana_rpc.c @@ -1007,7 +1007,7 @@ char *SuperNET_rpcparse(struct supernet_info *myinfo,char *retbuf,int32_t bufsiz } } origargjson = argjson; - if ( is_cJSON_Array(argjson) != 0 && cJSON_GetArraySize(argjson) == 0 ) + if ( is_cJSON_Array(argjson) != 0 && cJSON_GetArraySize(argjson) == 1 ) argjson = jitem(argjson,0); printf("after urlconv.(%s) argjson.(%s)\n",jprint(json,0),jprint(argjson,0)); if ( jstr(argjson,"method") == 0 )