JSON to Rust Struct (serde)

Paste JSON and get serde-ready Rust structs with inferred types and nested structs.

Frequently asked questions

What does this generate?

serde-ready Rust structs from your JSON — with #[derive(Serialize, Deserialize)], snake_case field names and #[serde(rename_all = "camelCase")] so they map back to camelCase JSON keys.

What types does it use?

String, i64 for whole numbers, f64 for decimals, bool, Vec<...> for arrays, and serde_json::Value for nulls/unknowns. Tighten these for your real schema.

Does it need serde?

Yes — add serde and serde_json to your Cargo.toml. The generated code derives Serialize and Deserialize.