evanphx / json-patch

A Go library to apply RFC6902 patches and create and apply RFC7386 patches
BSD 3-Clause "New" or "Revised" License
1.05k stars 182 forks source link

nil dereference on empty "replace" on root #168

Closed readams closed 8 months ago

readams commented 1 year ago

This JSON patch will crash: {"op": "replace", "path": ""}