Registry / serialization / jsonata-python

jsonata-python

JSON →
library0.7.0pypypi✓ verified 22d ago

jsonata-python is a pure Python implementation of the JSONata query and transformation language, currently at version 0.6.2. It aims to provide 100% of the language features of JSONata without external dependencies, offering a performant alternative to Python libraries that rely on JavaScript bindings. The library maintains a steady release cadence with updates reflecting the upstream JSONata specification.

pip install jsonata-python
INSTALL
IMPORT
SIG · JSONATA-PYTHON
J
jsonata-python
serializationpythonv0.7.0
Install
1.6s avg
Import
98ms
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.7.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.102s · 18.4MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.6s · import 0.094s · 19MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Jsonata
from jsonata import Jsonata
import jsonata

This quickstart demonstrates how to define a JSONata expression and apply it to a Python dictionary using the jsonata-python library. It calculates the sum of 'value' fields within a nested array.

import jsonata data = {"example": [{"value": 4}, {"value": 7}, {"value": 13}]} expr_str = "$sum(example.value)" expr = jsonata.Jsonata(expr_str) result = expr.evaluate(data) print(f"JSONata expression: {expr_str}") print(f"Input data: {data}") print(f"Result: {result}")
Debug
Known issues
gotchaJSONata date/time functions that utilize ISO 8601 formats are only fully supported when running on Python 3.11 or newer. Users on older Python versions (3.10 and below) may experience issues or limited functionality with these specific date/time operations.
fix
Upgrade to Python 3.11 or a newer version to ensure full support for all JSONata date/time functions.
affects: <0.6.0 (before full Python 3.11+ support for date/time functions)
gotchaThis 'jsonata-python' library is a pure Python implementation. Older Python wrappers for JSONata, such as 'jsonata-wrapper' or 'pyjsonata', often relied on JavaScript bindings and may have different APIs, performance characteristics, and potential compatibility issues. Ensure you are importing from 'jsonata' if you intend to use this pure Python version.
fix
Always use `import jsonata` and refer to the `jsonata-python` documentation for API details. Be aware that other `jsonata` packages on PyPI may refer to different implementations.
affects: All versions
Upgrade
Version history
0.7.0latest on PyPI · released Jul 5, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
12
Resources
jsonata-python — pip install jsonata-python · libregistry