Uncut data model
Decode
val decode : decoder -> [ `Await | `Lexeme of lexeme | `White of string | `Comment of [ `S | `M ] * string | `End | `Error of error ]decode d is like Jsonm:decode but for the uncut data model.
val pp_decode : Stdlib.Format.formatter -> [< `Await | `Lexeme of lexeme | `White of string | `Comment of [ `S | `M ] * string | `End | `Error of error ] -> unitpp_decode ppf v prints an unspecified representation of v on ppf.
Encode
val encode : encoder -> [< `Await | `Lexeme of lexeme | `White of string | `Comment of [ `S | `M ] * string | `End ] -> [ `Ok | `Partial ]encode is like Jsonm:encode but for the uncut data model.
IMPORTANT. Never encode `Comment for the web, it is non-standard and breaks interoperability.