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

Improve json:setElement(json, path, json.element) to replace values, API docs, and theme #23

Merged
merged 5 commits into from
Jul 4, 2019

Conversation

suhothayan
Copy link
Contributor

Purpose

Improve usability and add missing features

Improve json:setElement(json, path, json.element) to replace existing values.
E.g
json:setElement(json, '$.item', 'book')

Here if the json is the format {'name' : 'Stationary', 'item' : 'pen'}, the function updates the >json as {'name' : 'John', 'item' : 'book'} by replacing 'item' element and returns the updated JSON.

Release note

Improve json:setElement(json, path, json.element) to replace existing
values.

Documentation

Auto gnerated.

Improve json:setElement(json, path, json.element) to replace existing
values.

E.g
json:setElement(json, '$.item', 'book')

Here if the `json` is the format `{'name' : 'Stationary', 'item' : 'pen'}`, the function updates the `json` as `{'name' : 'John', 'item' : 'book'}` by replacing 'item' element and returns the updated JSON.
@mohanvive mohanvive merged commit 3b56002 into siddhi-io:master Jul 4, 2019
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

Successfully merging this pull request may close these issues.

2 participants