Welcome to RichJSON -- JSON with inheritances, references and commands
RichJSON is a powerful extension of the standard JSON format, meticulously designed to make your data highly modular, reusable, and significantly more compressed. By eliminating redundancy through intelligent referencing, it bridges the gap between human-readable configuration and machine-efficient data structures.
📦 Get Started (You can find the Wiki here.)
npm install @rjson/parser
TODOs:
🌟 Why RichJSON?
RichJSON is optimized to store JSON data in a space-efficient manner. While standard JSON often suffers from "data bloat" due to repeated objects, RichJSON allows you to define data once and reference it everywhere. Read more about in the documentation.
[!NOTE] This library is optimized for compact storage and network bandwidth savings. It is designed for scenarios where reducing IO and footprint is more critical than raw writing or querying throughput.
✨ Key Features
RichJSON maintains 100% compatibility with standard JSON parsers while introducing a sophisticated layer of logic:
- Zero-Violation Format: Valid JSON syntax that any standard editor can read.
- Smart Referencing (
$ref): Point to objects, files, or environment variables to avoid duplication. - Multi-Inheritance: Build complex objects by inheriting from existing JSON structures.
- Nested Interpolation: Dynamic string resolution within your data fields.
- Custom Commands: Extend the logic with your own modules for specific business use cases.
🛠️ How It Works (read more...)
RichJSON transforms static files into dynamic structures. Here is the "magic" in action:
1. Define your structure
{
"data_template": {
"data0": "value",
"data1": "value",
"data2": "value"
},
"applied_reference": "$ref:data_template"
}
2. Resolve the data
import * as RichJson from "@rjson/parser"
let obj = RichJson.parse(data);
3. The Result
The output is a fully resolved, standard JSON object where all references are hydrated:
{
"data_template": {
"data0": "value",
"data1": "value",
"data2": "value"
},
"applied_reference": {
"data0": "value",
"data1": "value",
"data2": "value"
}
}
Auther's recomendation: start reading the Wiki
Release files for rjson-parser 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rjson_parser-1.3.0.tar.gz | 20.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rjson_parser-1.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 47.4 kB
Release files / rjson_parser-1.3.0.tar.gz
| Download URL | rjson_parser-1.3.0.tar.gz |
|---|---|
| Size | 20.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c64fd7193b661987521171dc708b04f8fecdb945a658f273d083810cc1335ed9
|
|
BLAKE2b-256 checksum How to use checksums |
bd458a157c5103dcd6c67bcb174c54b512d0d3c600965fc64a4cf69ea3802762
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / rjson_parser-1.3.0-py3-none-any.whl
| Download URL | rjson_parser-1.3.0-py3-none-any.whl |
|---|---|
| Size | 26.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6a5f400b83f6959eec434b225a085d369053c5f247a0d935ecb8be459c8d91cb
|
|
BLAKE2b-256 checksum How to use checksums |
7b94d7910d4014d50c6e623f6158c73726f79509132fa90412afdfccc4c0d0fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|