added json_serialize for request object