jsonyxΒΆ

Customizable JSON library for Python.

Functions

apply_filter(nodes, query, *[, allow, ...])

Apply a JSON filter query to a node or a list of nodes.

apply_patch(obj, patch, *[, allow, use_decimal])

Apply a JSON patch to a Python object.

detect_encoding(b)

Detect the JSON encoding.

dump(obj[, fp, allow, check_circular, ...])

Serialize a Python object to an open JSON file.

dumps(obj, *[, allow, check_circular, ...])

Serialize a Python object to a JSON string.

format_syntax_error(exc)

Format a truncated syntax error.

load(fp, *[, allow, cache_keys, hooks, root])

Deserialize an open JSON file to a Python object.

load_query_value(s, *[, allow, use_decimal])

Deserialize a JSON query value to a Python object.

loads(s, *[, allow, cache_keys, filename, hooks])

Deserialize a JSON string to a Python object.

make_patch(old, new)

Make a JSON patch from two Python objects.

paste_values(current_nodes, values, operation, *)

Paste value to a node or values to a list of nodes.

read(filename, *[, allow, cache_keys, hooks])

Deserialize a JSON file to a Python object.

select_nodes(nodes, query, *[, allow, ...])

Select nodes from a node or a list of nodes.

write(obj, filename[, encoding, allow, ...])

Serialize a Python object to a JSON file.

Classes

Decoder(*[, allow, cache_keys, hooks])

A configurable JSON decoder.

Encoder(*[, allow, check_circular, commas, ...])

A configurable JSON encoder.

Manipulator(*[, allow, use_decimal])

A configurable JSON manipulator.

Exceptions

JSONSyntaxError(msg, filename, doc[, start, end])

Invalid JSON (query) syntax.

TruncatedSyntaxError(msg, filename, doc[, ...])

Syntax error trucated to fit within the terminal width.