Serialize using to_json on fields