Serializes operation responseClass as json type attribute