Loading editor...
Loading editor...
// Generated Rust code will appear here...
settings
Generate Rust structs from JSON data with serde Serialize and Deserialize derives.
Features
- Generate Rust structs from JSON
- serde Serialize/Deserialize derives
- Option types for nullable fields
- Nested struct generation
- snake_case field naming
- Copy generated code to clipboard
How to Use
- Paste your JSON — Enter a sample JSON object.
- Generate Rust code — Get Rust structs with serde derives.
- Copy and compile — Paste the generated structs into your Rust project.
FAQ
Does it support serde?
Yes. Generated structs include #[derive(Serialize, Deserialize)] and #[serde(rename)] attributes.
Can I use this with Axum or Actix?
Yes. Works with any Rust web framework using serde for JSON serialization.
