Serialize and Deserialize objects to JSON (or whatever) format