Module Jsont.Caret

JSON carets

Carets

type pos =
  1. | Before
    (*

    The void before the data indexed by a path.

    *)
  2. | Over
    (*

    The data indexed by a path.

    *)
  3. | After
    (*

    The void after the data indexed by a path.

    *)

The type for caret positions.

type t = Path.t * pos

The type for carets. A path and the caret position.

val of_string : string -> (t, string) Stdlib.result

of_string s parses a caret according to the caret syntax .

val pp : t fmt

pp formats carets.