How to erase nested objects inside other objects? #728
Labels
kind: question
solution: proposed fix
a fix for the issue has been proposed and waits for confirmation
Hello Niels,
Is it possible to erase/delete nested objects using a similar technique as you've created for adding nested objects inside other objects?
j["answer"]["everything"] = 42;
Is there an equivalent way to do j.erase(["answer"]["everything"]; (ie, doesn't work) ?
This j["answer"]["everything"] = 42; is neat for adding nested objects inside other objects but so far I'm unable to find a corresponding function in your library to delete/erase nested objects. Is there a way to do this?
My apologies if I've missed something obvious. Hoping you can help me with these two questions. Much thanks. Greg
The text was updated successfully, but these errors were encountered: