-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Description
input: 0:2:3
Json::Reader::parse returns true. But accessing member makes assert exception.
json: src/lib_json/json_value.cpp:1176: const Json::Value& Json::Value::operator[](const char*) const: Assertion `type_ == nullValue || type_ == objectValue' failed.
test code:
Json::Value root;
Json::Reader reader;
if ( not reader.parse("0:2:3", root) )
{
cerr << "failed!" << endl;
cerr << reader.getFormatedErrorMessages() << endl;
}
else
{
cerr << "success!" << endl;
}
root.isMember("sss");
Metadata
Metadata
Assignees
Labels
No labels