PySide6.QtCore.QJsonParseError¶
- class QJsonParseError¶
- Synopsis¶- Methods¶- def - errorString()
 - Note - This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE - Detailed Description¶- class ParseError¶
- This enum describes the type of error that occurred during the parsing of a JSON document. - Constant - Description - QJsonParseError.NoError - No error occurred - QJsonParseError.UnterminatedObject - An object is not correctly terminated with a closing curly bracket - QJsonParseError.MissingNameSeparator - A comma separating different items is missing - QJsonParseError.UnterminatedArray - The array is not correctly terminated with a closing square bracket - QJsonParseError.MissingValueSeparator - A colon separating keys from values inside objects is missing - QJsonParseError.IllegalValue - The value is illegal - QJsonParseError.TerminationByNumber - The input stream ended while parsing a number - QJsonParseError.IllegalNumber - The number is not well formed - QJsonParseError.IllegalEscapeSequence - An illegal escape sequence occurred in the input - QJsonParseError.IllegalUTF8String - An illegal UTF8 sequence occurred in the input - QJsonParseError.UnterminatedString - A string wasn’t terminated with a quote - QJsonParseError.MissingObject - An object was expected but couldn’t be found - QJsonParseError.DeepNesting - The JSON document is too deeply nested for the parser to parse it - QJsonParseError.DocumentTooLarge - The JSON document is too large for the parser to parse it - QJsonParseError.GarbageAtEnd - The parsed document contains additional garbage characters at the end 
 - PySide6.QtCore.QJsonParseError.offset¶
 - PySide6.QtCore.QJsonParseError.error¶
 - errorString()¶
- Return type:
- str 
 
 - Returns the human-readable message appropriate to the reported JSON parsing error. - See also