Closed felipevolpone closed 3 years ago
Hi @tidwall , first of all ty for this lib :)
I wonder if the project is open to add a new method on the gjson.Result to list the keys of that path.
I've seen in #126 that users can write their own code to do that, but I think it would be useful to have something like:
const json = `{"name":{"first":"Janet","last":"Prichard"},"age":47}` gjson.Get(json, "name").Keys() // returns ["first", "last"]
Rather than just submitting a PR with the feature implementation, I would like to know what u think.
Sure. I'm cool with you making a PR for this feature.
Hi @tidwall , first of all ty for this lib :)
I wonder if the project is open to add a new method on the gjson.Result to list the keys of that path.
I've seen in #126 that users can write their own code to do that, but I think it would be useful to have something like:
Rather than just submitting a PR with the feature implementation, I would like to know what u think.