response object serialization