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