asString() on intValue throws exception
Status: Beta
Brought to you by:
morongo
I had expected just about everything should be able to retrieve as String -- including objects and arrays (feature suggestion).
reader.parse("{\"intvalue\":1}",root);
if (root["intvalue"].isConvertibleTo(Json::stringValue)) // isConvertibleTo is returning true
cout << root["intvalue"].asString() // throws exception......
Posted to wrong project