这个写法编译器会提示warring: if (!(copy = (char*)cJSON_malloc(len))) return 0; 建议写成: copy = (char*)cJSON_malloc(len); if (!copy) return0;