I want to know how I can delete an item within an item in the nlohmann::json C++ library.
Json example file:
{
"Users":{
"User1":{
"Name":"BOB",
"DeleteMe":"IWantToBeDeleted!"
}
}
}
What I want to delete is "DeleteMe":"IWantToBeDeleted!" that is inside of "Users" and "User1" I have looked at the documentation for basic_json::erase but I can only see how to delete an item in the root of the json file, for example "Users" in my example file.
Any help would be appreciated =D