jsonx 0.1.0

A serde-enabled implementation of the JSONX extended-JSON format: typed value constructors, unquoted keys, and trailing commas.
Documentation
[package]
name = "jsonx"
version = "0.1.0"
edition = "2021"
rust-version = "1.87"
description = "A serde-enabled implementation of the JSONX extended-JSON format: typed value constructors, unquoted keys, and trailing commas."
license = "MIT OR Apache-2.0"
readme = "README.md"
keywords = ["jsonx", "json", "serde", "serialization", "parser"]
categories = ["encoding", "parser-implementations"]

[features]
default = ["derive"]
# Enables `#[derive(JsonxConstructor)]`. Pulls in the `jsonx-derive` proc-macro
# crate (and its syn/quote build deps); disable with `default-features = false`.
derive = ["dep:jsonx-derive"]
# Backs `Value` objects with `indexmap::IndexMap` so keys keep their insertion
# order instead of being sorted. Off by default (objects stay sorted via
# `BTreeMap`, giving input-order-independent canonical output).
preserve_order = ["dep:indexmap"]

[dependencies]
serde = "1"
chrono = { version = "0.4", default-features = false, features = ["std"] }
# Fast shortest-round-trip float formatting; reshaped into JSONX's %g style.
ryu = "1"
jsonx-derive = { version = "=0.1.0", path = "jsonx-derive", optional = true }
indexmap = { version = "2", optional = true }

[dev-dependencies]
serde = { version = "1", features = ["derive"] }
serde_json = "1"
criterion = "0.8"

[[bench]]
name = "deserialize"
harness = false

[[example]]
name = "demo"
required-features = ["derive"]