#[derive(Serialize, Deserialize)]
pub struct Address {
pub city: String,
pub zip: String,
}
#[derive(Serialize, Deserialize)]
pub struct Root {
pub name: String,
pub age: i64,
pub address: Address,
}
本工具是一個在線將JSON字符串轉換為帶有serde支援的Rust結構體定義的工具。