I'm using boost property trees to read values from a json file.
{
"some_values":
{
"field_1": "value_1",
"field_2": true
}
}
I can read the values with:
spTree->get<string>("some_values.field_1", "");
spTree->get<bool>("some_values.field_2", false);
But can I read the type of the variable stored in any given field?