Structure
judo_error
Parse error.
Since v1.0
struct judo_error {
struct judo_span where;
char description[JUDO_ERRMAX];
}
Properties 🔗
where | Code unit index of the error in the source text. |
description | Description of the error in US English. |
Discussion 🔗
This structure will be populated with error information if judo_parse fails.
The description field will be populated with a UTF-8 encoded error message written in US English. The where field will be populated with the span of code units where the error was detected in the JSON source text. You can use the span of code units to derive line and column numbers for more detailed error reporting.