RFC6901 JSON Pointer implementation in OCaml using jsont
at main 19 lines 386 B view raw
1# Evaluation tests against RFC 6901 example document 2# Format: pointer -> expected JSON value 3 4# Root - whole document 5 -> {"foo":["bar","baz"],"":0,"a/b":1,"c%d":2,"e^f":3,"g|h":4,"i\\j":5,"k\"l":6," ":7,"m~n":8} 6 7# RFC 6901 Section 5 examples 8/foo -> ["bar","baz"] 9/foo/0 -> "bar" 10/foo/1 -> "baz" 11/ -> 0 12/a~1b -> 1 13/c%d -> 2 14/e^f -> 3 15/g|h -> 4 16/i\j -> 5 17/k"l -> 6 18/ -> 7 19/m~0n -> 8