rfc6902

How is the tilde escaping in the JSON Patch RFC supposed to operate?

做~自己de王妃 提交于 2019-12-23 15:26:54
问题 Referencing http://tools.ietf.org/html/rfc6902#appendix-A.14: A.14. ~ Escape Ordering An example target JSON document: { "/": 9, "~1": 10 } A JSON Patch document: [ {"op": "test", "path": "/~01", "value": 10} ] The resulting JSON document: { "/": 9, "~1": 10 } I'm writing an implementation of this RFC, and I'm stuck on this. What is this trying to achieve, and how is it supposed to work? Assuming the answer to the first part is "Allowing json key names containing /s to be referenced," how