cJSON判断字段是否存在

cJSON* tmp = cJSON_GetObjectItem(obj,"a");

if(tmp) "存在"

else “不存在”

posted @ 2024-01-08 19:19  远方是什么样子  阅读(159)  评论(0)    收藏  举报