Provides the ability to modify and test a JSON according to a RFC6902 JSON patch and RFC7396 JSON Merge Patch.
Version: 1.0
[]byte
, obtain a Patch objectobj, err := jsonpatch.DecodePatch(patch)
out, err := obj.Apply(doc)
mergeDoc, err := jsonpatch.CreateMergePatch(a, b)
jsonpatch.Equal(doca, docb)