njson: efficient JSON-like data transformation tool (Python Module)

What is njson?

Python module for fast JSON-like data transformation to and from nested parent-child and flat label-value data items, such as Pandas Series with MultiIndex index.

Here are some key features of the njson module:

  • Transformation are optimized for speed, to allow parsing deeply nested json-like data with millions of data points in seconds.
  • Transformation are lazily computed properties only calculated when accessed for the first time. Initializing NestedJson object does not require parsing the source data.
  • nsjon is Pure-Python package that is well-suited for cloud native computing - JupyterLite, Pyodide, PyScript, Cloudflare Workers in Python, etc.