Skip to content

[FEAT] Update Function #12

@mahmoudajawad

Description

@mahmoudajawad

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions