Serializes req/res as objects