Expatch
An Elixir implementation of JSON Patch
Installation
add expatch
to your list of dependencies in mix.exs
:
def deps do
[
{:expatch, "~> 0.1.0"},
]
end
Usage
Expatch.apply(%{foo: "bar"}, [%{op: "add", path: "/baz", value: "qux"}])