Making response serializable