jsonxt

Jsonxt - JSON parsers for files, strings and more
IN THIS PACKAGE
Module Jsonxt . Error_info
type t = {
line : int;
start_char : int;
end_char : int;
msg : string;
}

t encapsulates a parsing error and has the following fields

  • line: Line where the error occurred
  • start_char: first character of error in line
  • end_char: last character of error in line
  • msg - error message
exception Json_error_info of t
val create_from_lexbuf : Lexing.lexbuf -> string -> t
val to_string : t -> string