Paste a JSON sample and get Rust structs deriving Deserialize (and Serialize if you like): String, i64, f64, bool, Vec<T>, nested structs, Option<T> for nullable or optional fields with #[serde(default)], and #[serde(rename = "...")] wherever a key isn't a snake_case identifier. Integers past i64 become u64 or i128; values of no single type become serde_json::Value.
The generated structs compile in the tests. It runs entirely in your browser.
Need a different language? See all JSON-to-code converters.
Found something broken, have an idea, or just want to say thanks about any of our tools? Every message reaches a real person.