json_macro
Macro for rust_serialize crate realized with standard macro_rule (no needs compiler features).
Dependencies
Add this to your Cargo.toml
:
[]
= "*"
and this to your crate root:
extern crate json_macro;
Usage
Use macro this way:
let s = json!;
let f = json!;
let a = json!;
let o = json!;