# NOT RUN {
# update element with key "a"
json_merge('{"a": 1, "c": 3}', '{"a": 11}')
# you can also add elements
json_merge('{"a": 1, "c": 3}', '{"b": 2}')
# remove elements with `null`
json_merge('{"a": 1, "c": 3}', '{"c": null}')
# }
Run the code above in your browser using DataLab