Syntax
typedef struct json_error_t
{
int line;
int column;
int position;
char source[JSON_ERROR_SOURCE_LENGTH];
char text[JSON_ERROR_TEXT_LENGTH];
} json_error_t;
Members
- line
- The line number on which the error occurred.
- column
- The column on which the error occurred. Note that this is the character column, not the byte column, i.e. a multibyte UTF-8 character counts as one column.
- position
- The position in bytes from the start of the input. This is useful for debugging Unicode encoding problems.
- source[JSON_ERROR_SOURCE_LENGTH]
-
Source of the error. This can be (a part of) the file name or a special identifier in angle brackets (e.g.
). JSON_ERROR_SOURCE_LENGTH is 80. - text[JSON_ERROR_TEXT_LENGTH]
- The error message (in UTF-8), or an empty string if a message is not available. JSON_ERROR_TEXT_LENGTH is 160.
Remarks
Note:
Note that the contents of the json_error_t type variable are usually left unspecified if the call is successful.Requirements
- Header file:
-
lib.h : System E6.0 or later.
jansson.h
jansson_config.h
jansson_log.h
- Library file:
-
libJansson.a
libSTARTUPOPH5000.a : System E6.0 or later.
Reference
See below for details.
Last updated: 2022/01/26