Auto serialization of JSON.