json_macros icon indicating copy to clipboard operation
json_macros copied to clipboard

Construct JSON objects in Rust from JSON-like literals. (deprecado, use serde_json's json! macro)

Results 5 json_macros issues
Sort by recently updated
recently updated
newest added
trafficstars

- serde_json 0.9.x uses `serde_json::Map` instead of `BTreeMap` - added tests for (pretty)printing - passes all tests for `rustc-serialize` and `serde_json` Now that serde introduced its own [json! macro](https://docs.serde.rs/serde_json/macro.json.html), you...

Let's copy the implementation from serde_json: https://github.com/serde-rs/json/blob/v0.9.8/json/src/macros.rs and make it work with rustc-serialize. Then we no longer need an unstable plugin.

Apologies if the answer to this is of the form "well obviously..." -- I don't have a ton of experience working with Rust yet. I'm interested in understanding why you...

As of serde_json 0.9 it provides its own stable macro_rules `json!` macro: https://docs.serde.rs/serde_json/macro.json.html Some neat things about it: - macro_rules, works great on stable Rust - no parens needed around...

Feature request: a macro which works like `json!`, but in a pattern-matching context. Parentheses could be used to insert Rust's regular pattern matching. Example: ``` rust if let json_pat!({"isFoo": (Json::Boolean(flag))})...