How to "remove" a key/value in a JSON object?

We can reset an entire variable but not a path. (reset variable value)
We can update a path but not delete. I can set null, but that’s not the same thing. (change variable value). Setting to null will add bloat to my JSON unecessarily.

So how do I delete the key in a nested JSON object variable?

I guess this is custom javscript but I can’t figure it out :frowning:

Hi @what.gift :wave:

I think this will do the trick. Spoiler alert: no JS involved :slight_smile:

Does that help?

That does help massively - thanks!

I hadn’t considered the “omit” initially as the description of it’s purpose didn’t sound like it was for deleting.

I had to play around with it to target the nested children, but figured it out like this:

1 Like