Serialize/deserialize HTML forms to/from json