There is a file:
{ "item_gold_coin": { "name": "Gold Coin", "description": "A small disc made of lustrous metal" }, "item_iron_key": { "name": "Iron Key", "description": "A heavy iron key with a simple cut" } } Using the jsoncpp library, I will iterate through the elements ( item_* ) in the file:
for(auto entity : root){ ... } And I need to get the name from the entity . How can I do it?