Skip to content
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

[FEAT] Update Function #12

Open
mahmoudajawad opened this issue Mar 10, 2022 · 0 comments
Open

[FEAT] Update Function #12

mahmoudajawad opened this issue Mar 10, 2022 · 0 comments

Comments

@mahmoudajawad
Copy link
Contributor

mahmoudajawad commented Mar 10, 2022

Thank you for your work.

I liked your clean implementation of JSONPath. all other python libs seem to over do things in a style I don't like, so I settled to using yours. However, I need an update functionality in it, such as, updating a JSON-structured object using JSONPath supplied by a function to update the value dynamically for all matches. I already started working on it, however, I wanted to hear from you first on whether you have this planned already and that I work on it according to your plan, or that it is not planned and I can bring my own implementation whatever seems to work for me. I'm thinking of following API:

JSONParse(jsonpath).update(json_object, lambda current_value: 15) # Update all matches to 15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant