https://github.com/adzerk/json-e-js
https://github.com/adzerk/json-e-js
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/adzerk/json-e-js
- Owner: adzerk
- License: mpl-2.0
- Created: 2022-05-27T06:20:36.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-07-11T22:50:10.000Z (almost 3 years ago)
- Last Synced: 2025-03-13T02:43:37.514Z (over 1 year ago)
- Language: JavaScript
- Size: 158 KB
- Stars: 1
- Watchers: 21
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JSON-e
JSON-e is a data-structure parameterization system for embedding context in
JSON objects.
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](https://mustache.github.io/). 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.
## Full Documentation
See [json-e.js.org](https://json-e.js.org).
## Changes
See
[CHANGELOG.rst](https://github.com/json-e/json-e/blob/main/CHANGELOG.rst)
for the changes in each version of this library.