Jsont.Sort
Sorts of JSON values.
val to_string : t -> string
to_string s
is a string for sort s
.
val pp : Stdlib.Format.formatter -> t -> unit
pp
formats sorts.
For formatting error messages.
val or_kind : kind:string -> t -> string
or_kind ~kind s
is to_string s
if kind
is ""
and kind
otherwise.
val kinded : kind:string -> t -> string
kinded ~kind s
is to_string s
if kind
is ""
and String.concat " " [kind; to_string s]
otherwise.