-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Querying Path #8
Comments
another approach would be to have a method on gjson to get the index of the found element (from above name's methods). then I could easily update via sjson by giving an index integer/string. |
just found out that there is a method for getting the index position. seems to be you can consider this issue as closed. but querying a path would be nice nevertheless. |
Hi @omani, I wrote the https://github.com/tidwall/sjson library that can be used for updating values. Though some paths, such as ones that have '#' character may not be updatable. |
Sorry about the weird response. I thought this issue was filed on the |
This would be a pretty nice feature and something I'll keep in mind for a future release. |
thanks for the quick response. yeah hope to see it sometime. the thanks. |
Glad to hear 👍 |
I realized method |
Hi,
like in gjson:
It would be nice if one could set a field by querying for it. because right now I would like to update an object within an array. and I don't know the index beforehand.
any plans to implement this?
The text was updated successfully, but these errors were encountered: