improved the interoperability with serialize::json.