代码如下
if(DICTOOL->checkObjectExist_json(m_doc, “lv”)){
int temp = DICTOOL->getIntValue_json(m_doc, “lv”);
}
在执行到checkObjectExist_json这一句时报错,最终报错在document.h下的RAPIDJSON_ASSERT(IsObject());
代码如下
if(DICTOOL->checkObjectExist_json(m_doc, “lv”)){
int temp = DICTOOL->getIntValue_json(m_doc, “lv”);
}
在执行到checkObjectExist_json这一句时报错,最终报错在document.h下的RAPIDJSON_ASSERT(IsObject());
你好,请问你这个内容是什么样的类型呢?导出时是如何设置的呢?
对象方式和属性方式都试过了,仍然报错
document中要求flags_为kObjectType,而实际为4(kArrayType),这个flags_什么意思不明白啊
那么可能是你的数据过于复杂,document还未支持。