JSON Patch replace entire object in root path throws error #17927
Labels
affected-very-few
This issue impacts very few customers
area-mvc
Includes: MVC, Actions and Controllers, Localization, CORS, most templates
area-networking
Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
bug
This issue describes a behavior which is not expected - a bug.
feature-json-patch
✔️ Resolution: Duplicate
Resolved as a duplicate of another issue
severity-minor
This label is used by an internal tool
Status: Resolved
Milestone
Describe the bug
JSON Patch implementation does not work as expected when trying to replace entire object.
Error: The target location specified by path segment '' was not found.
To Reproduce
input:
patch:
output:
Test runs successful with json8 (https://github.com/sonnyp/JSON8):
https://json8.github.io/patch/demos/apply/
code example:
Error:
Further technical details
The text was updated successfully, but these errors were encountered: