JSON เป็นโครงสร้างสนิม

#[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 เป็นคำจำกัดความโครงสร้าง Rust พร้อมการสนับสนุน serde