This is the lite version of the JSON Engine
please refer to https://pypi.org/project/jsoneng/ for the python package
and please refer to https://github.com/youhengzhou/jsoneng for the repo
py -m pip install jsoneng -U
import jsonengine
eng.create(dictionary, path)
This will create a JSON dictionary in the path
eng.retrieve(path)
This will retrieve the JSON dictionary in the path
eng.update(dictionary, path)
This will update a JSON dictionary in the path
Update in this case means replacing the dictionary in its entirety with a new one
eng.update_kv(key, value, path)
This will update a key value pair in the JSON dictionary in the path
Update in this case means replacing the dictionary with the key value pair
eng.patch(dictionary, path)
This will patch a JSON dictionary in the path
Patch in this case means keeping the JSON dictionary in the path and appending to the dictionary
eng.patch_kv(dictionary, path)
This will patch a key value pair in the JSON dictionary in the path
Patch in this case means keeping the dictionary and appending the new key value pair
eng.delete(path)
This will delete the JSON dictionary in the path