I am reading json value in C ++ using
Json::Reader reader
and the value is stored in Json::Value root
This root contains "age" and "id", and I want to convert root ["age"] to int.
I tried converting it to a string using .str () but couldn't get it.
Any suggestion?
source share