API Reference Jsonpatch v0.11.0


A implementation of RFC 6902 in pure Elixir.

Maps JSON patches between regular Maps and list or a single Jsonpatch.Operation.

The Operation module is responsible for applying patches. For examples see in the available implementation from this library for this protocol

The add operation is the operation for adding (as you might guess) values to a map or struct. Values can be appended to lists by using - instead of an index.

Represents the handling of JSON patches with a copy operation.

Move operations change the position of values in map or struct.

A JSON patch remove operation is responsible for removing values.

The replace module helps replacing values in maps and structs by paths.

A test operation in a JSON patch prevents the patch application or allows it.

JsonpatchException wil be raised if a patch is applied with "!".