qntfy / kazaam

Arbitrary transformations of JSON in Golang
MIT License
282 stars 54 forks source link

Delete a key anywhere in the file #75

Closed the4thamigo-uk closed 2 years ago

the4thamigo-uk commented 6 years ago

Id like to delete a key that might occur at multiple places in a json file, for which the paths are not known. Can I do this with kazaam? In other words id like wildcards in paths.

Supporting JSONPath-like syntax would be a great feature, or even something like https://github.com/tidwall/gjson.

Would you welcome a PR to this effect?

ryanleary commented 6 years ago

We'd welcome a PR for something like this, but it's not something currently on our roadmap. Sounds very cool and useful, we just don't have the cycles to do it at the moment!

We'd be happy to help out with integration and accepting of a PR once well-tested.