Expand description
A JSON parse built to keep track of where each element came from in the input.
Structs§
- Error
- A parsing Error that keeps track of the token being parsed when the Error occurred and the slice of JSON surrounding the Error location.
- Error
Report - A more comprehensive report on the
Errorusing the source JSON&strto provide human readable context. - LineCol
- A file location expressed as line and column.
- Partial
Error - An error that has yet to be resolved with a
Span. - RawStr
- A
&strwith surrounding quotes removed and it hasn’t been analyzed for escapes codes. - Span
- The
Spandefines the range of bytes that delimits a JSONElement. - Span
Bounds - The line and col indices of the start and end of the span.
- Token
- A lexical token, identifying its kind and span.
Enums§
- Error
Kind - The kind of Errors that can occur while parsing JSON.
- Token
Type - Define our own
TokenTypeso Clone can be defined on it.
Functions§
- line_
col - Return the line and column indices of the end of the slice.