JSON Pointer token syntax (RFC 6901)
0

Configure Feed

Select the types of activity you want to include in your feed.

OCaml 72.3%
Dune 8.5%
Other 19.2%
4 1 0

Clone this repository

https://tangled.org/gazagnaire.org/ocaml-jsonptr https://tangled.org/did:plc:7mj5tdd3zre3u7k6cs75hcrp
git@git.recoil.org:gazagnaire.org/ocaml-jsonptr git@git.recoil.org:did:plc:7mj5tdd3zre3u7k6cs75hcrp

For self-hosted knots, clone URLs may differ based on your setup.



README.md

nox-jsonptr#

The JSON Pointer string syntax (RFC 6901): token escaping (~0/~1), pointer splitting, and array-index parsing. Value-type independent — document cursors (JSON, YAML) layer their own traversal on top.

Installation#

Install with opam:

$ opam install nox-jsonptr

If opam cannot find the package, it may not yet be released in the public opam-repository. Add the overlay repository, then install it:

$ opam repo add samoht https://tangled.org/gazagnaire.org/opam-overlay.git
$ opam update
$ opam install nox-jsonptr

Usage#

# Jsonptr.tokens "/a~1b/0";;
- : string list option = Some ["a/b"; "0"]
# Jsonptr.encode_token "m~n";;
- : string = "m~0n"
# Jsonptr.decode_index "01";;
- : int option = None

License#

ISC.