cJSON判断是否为空对象或空数组

 

if(pObject->child == nullptr)
{
  //没有键值对,为空的json对象  
}

 

posted @ 2022-04-11 16:04  远方是什么样子  阅读(514)  评论(0编辑  收藏  举报