More sensible defaults for serializeToJson.