Installation

Rust

Add to your Cargo.toml:

cargo add json-tools-rs

Or manually:

[dependencies]
json-tools-rs = "0.9"

Python

Install from PyPI:

pip install json-tools-rs

Pre-built wheels are available for:

PlatformArchitectures
Linux (glibc)x86_64, x86, aarch64, armv7, ppc64le
Linux (musl)x86_64, x86, aarch64, armv7
macOSx86_64 (Intel), aarch64 (Apple Silicon)
Windowsx64

Python 3.8+ is supported.

Verify Installation

Rust:

use json_tools_rs::JSONTools;

fn main() {
    let result = JSONTools::new()
        .flatten()
        .execute(r#"{"hello": "world"}"#)
        .unwrap();
    println!("{:?}", result);
}

Python:

import json_tools_rs as jt

result = jt.JSONTools().flatten().execute({"hello": "world"})
print(result)  # {'hello': 'world'}