How to delete a json::value member?

Mar 16, 2015 at 4:43 PM
I have json::value of type object. I need to remove an existing member, but I cannot find any method, operator or pattern that will allow me to do this. Am I overlooking something?
Coordinator
Mar 16, 2015 at 6:11 PM
Hi michaelgunter,

Yes you are correct this is currently a hole in our existing API. There is no way to remove or erase items from a JSON object or array. This is a known issue and track here. We discovered this a while ago, but I think you might actually be the first person to notice/complain about it missing.

If you want to get unblocked quickly, we accept contributions to the library. Our objects/arrays are internally stored in a vector so it should be quite easy to implement this functionality.

Steve
Coordinator
Apr 2, 2015 at 10:20 PM
FYI - I've implemented this in the development branch now if you want to use it.

Steve