jsonyx.allowΒΆ

Allow minimal and unambiguous JSON deviations for developer convenience.

See the specification for more information.

Tip

Flags can also be combined (e.g. COMMENTS | UNQUOTED_KEYS) or excluded (e.g. EVERYTHING - NON_STR_KEYS).

Module Attributes

NOTHING

Raise an error for all deviations from RFC 8259.

COMMENTS

Allow block and line comments.

MISSING_COMMAS

Allow separating items with whitespace.

NAN_AND_INFINITY

Allow NaN, Infinity and -Infinity.

NON_STR_KEYS

Allow non-string keys in "object" types.

SURROGATES

Allow unpaired surrogates in strings.

TRAILING_COMMA

Allow a trailing comma at the end of arrays and objects.

UNQUOTED_KEYS

Allow unquoted keys in objects which are identifiers.

EVERYTHING

Allow all JSON deviations.