| Crates.io | jsony_value |
| lib.rs | jsony_value |
| version | 0.0.1 |
| created_at | 2026-01-18 15:03:13.230589+00 |
| updated_at | 2026-01-18 15:03:13.230589+00 |
| description | A JSON value representation for the jsony crate. |
| homepage | |
| repository | https://github.com/exrok/jsony |
| max_upload_size | |
| id | 2052453 |
| size | 256,245 |
WARNING: This crate is still experimental and makes extended usage of unsafe.
Values use a 16-byte tagged union representation, allowing
[Option<Value>] to also be 16 bytes through niche optimization.
See: jsony for full JSON parsing and serialization.
Value] - Tagged union representing any JSON valueValueString] - Strings that can be borrowed or ownedValueNumber] - Discriminated union of U64, I64, F64ValueList] - Growable array of valuesValueMap] - JSON object support duplicate keysuse jsony_value::{Value, ValueString, ValueMap, ValueList};
// Create values from Rust types
let num: Value = 42i64.into();
let text: Value = "hello".into();
let flag: Value = true.into();
// Build a JSON object
let map: Value = [
("name", Value::from("Alice")),
("age", Value::from(30i64)),
].into_iter().collect();
This project uses large parts of the hashbrown crates internals to build it's multimap.