RFC6901 JSON Pointer implementation in OCaml using jsont
1# Evaluation error tests
2# Format: pointer -> error type
3
4# Nonexistent members
5/nonexistent -> member not found
6/foo/nonexistent -> type mismatch (array, not object)
7
8# Out of bounds array indices
9/foo/2 -> index out of bounds
10/foo/99 -> index out of bounds
11
12# Type mismatches
13/foo/0/bar -> type mismatch (string, not object)
14/ /0 -> type mismatch (number, not array)
15
16# End marker always errors on get
17/foo/- -> end marker not allowed
18/- -> end marker not allowed