GitHub

JsonArrayError

API reference for JsonArrayError.

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) passes max_depth or max_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

AttributeTypeDescription
kindLiteral['Syntax', 'Limit', 'Pointer', 'Encode']
messagestr
offsetint | None = None
causeException | None = None

Functions

__init__

__init__(kind, message, offset=None, cause=None) -> None
ParameterTypeDescription
kindLiteral['Syntax', 'Limit', 'Pointer', 'Encode']
messagestr
offsetint | None = None
causeException | None = None