Serde JSON in Rust: Serialization, Pretty Print, and Error Handling