QJsonParseError class is used to report errors during JSON parsing.
Returns the human-readable message appropriate to the reported JSON parsing error.
This enum describes the type of error that occurred during the parsing of a JSON document.
No error occurred
An object is not correctly terminated with a closing curly bracket
A comma separating different items is missing
The array is not correctly terminated with a closing square bracket
A colon separating keys from values inside objects is missing
The value is illegal
The input stream ended while parsing a number
The number is not well formed
An illegal escape sequence occurred in the input
An illegal UTF8 sequence occurred in the input
A string wasn’t terminated with a quote
An object was expected but couldn’t be found
The JSON document is too deeply nested for the parser to parse it
The JSON document is too large for the parser to parse it
The parsed document contains additional garbage characters at the end
Contains the type of the parse error. Is equal to
NoError if the document was parsed correctly.
Contains the offset in the input string where the parse error occurred.
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.