JsonPatch icon indicating copy to clipboard operation
JsonPatch copied to clipboard

Doesn't work with JObject

Open nike61 opened this issue 6 years ago • 0 comments

Hello! Can't make library work with JObject

dynamic source = JObject.Parse("{A:1}");
var diff  = JsonConvert.DeserializeObject<JsonPatchDocument>("[{\"op\":\"replace\",\"path\":\"/A\",\"value\":2}]");
diff.ApplyTo(source);

throws Exception

nike61 avatar Jul 16 '19 19:07 nike61