CMD + K

json-e

Community

A data-structure parameterization system written for embedding context in JSON objects

Installation

To install this package, run one of the following:

Conda
$conda install conda-forge::json-e

Usage Tracking

4.8.0
4.7.1
4.7.0
4.6.0
4.5.3
5 / 8 versions selected
Downloads (Last 6 months): 0

Description

The central idea is to treat a data structure as a "template" and transform it, using another data structure as context, to produce an output data structure. There are countless libraries to do this with strings, such as mustache. What makes JSON-e unique is that it operates on data structures, not on their textual representation. This allows input to be written in a number of formats (JSON, YAML, etc.) or even generated dynamically. It also means that the output cannot be "invalid", even when including large chunks of contextual data. JSON-e is also designed to be safe for use on untrusted data. It never uses eval or any other function that might result in arbitrary code execution. It also disallows unbounded iteration, so any JSON-e rendering operation will finish in finite time.

About

Summary

A data-structure parameterization system written for embedding context in JSON objects

Last Updated

Oct 4, 2024 at 03:41

License

MPL-2.0

Total Downloads

47.0K

Supported Platforms

noarch