Encoding or decoding a JSON array failed.
"Syntax": the input is not JSON (an empty input, content after the document, a bad value)."Limit": a value (an element, a key, or a value outside the selected array) passesmax_depthormax_element_size."Pointer": the pointer's target is missing or not an array, a value along it is not an object or array, or an object along it repeats the key it follows."Encode": a value has no JSON form.
Decoding errors set offset: the character offset of the bad value
(or character) in the text after a leading byte-order mark. cause
is the exception json raised, when it raised one.
Attributes#
| Attribute | Type | Description |
|---|---|---|
kind | Literal['Syntax', 'Limit', 'Pointer', 'Encode'] | |
message | str | |
offset | int | None = None | |
cause | Exception | None = None |
Functions#
__init__#
__init__(kind, message, offset=None, cause=None) -> None| Parameter | Type | Description |
|---|---|---|
kind | Literal['Syntax', 'Limit', 'Pointer', 'Encode'] | |
message | str | |
offset | int | None = None | |
cause | Exception | None = None |