Jsonpatch.Operation.Remove (Jsonpatch v1.0.0) View Source

A JSON patch remove operation is responsible for removing values.

Examples

iex> remove = %Jsonpatch.Operation.Remove{path: "/a/b"}
iex> target = %{"a" => %{"b" => %{"c" => "Bob"}}, "d" => false}
iex> Jsonpatch.Operation.apply_op(remove, target)
%{"a" => %{}, "d" => false}

Link to this section Summary

Link to this section Types

Specs

t() :: %Jsonpatch.Operation.Remove{path: String.t()}