Convert JSON to Rust struct!

Input JSON to generate Rust struct code, including nested objects!
input
result
 

Convert JSON to Rust struct!

Input JSON to generate Rust struct code, including nested objects!

Use Cases

- Models for API responses - Paste an API response to get a struct for every nested object, ready to use. - Key names and optional fields - Keys follow Rust naming conventions and stay mapped to the original JSON keys with #[serde(rename)]; fields missing in some items or set to null become optional (nullable).