如何从 http 适配器响应文本数据中过滤并获取 "DisplayName: Ariful"

How to filter and get "DisplayName: Ariful" from http adapter response text data

这是适配器的输出

":{
   "data": "{\"CustomerId\":\"1\",\"DisplayName\":\"Ariful\"}",
   "isSuccessful": true
}"

和我的 HTTP 适配器代码:

function getUniqueName(UniqueName){
    var input = { 
            method : 'post', 
            path : 'ZIMApi/api/zi/UniqueNameGet/',
            returnedContentType : 'plain',
            headers: {
                      'Content-Type' : 'application/json'
                     }, 
                     body : { 
                        'contentType' : 'application/json',
                        'content' : JSON.stringify({ 
                              'UniqueName' : UniqueName
                                    }
                                )
                        } 
                    };
     var response=WL.Server.invokeHttp(input);
     if (response.statusCode==200 && response.isSuccessful==true){

            var val =response.text

                return {

                    data:val
                }
        }
        else{

            return null
        }
}

能否将返回的内容类型从 returnedContentType : 'plain' 更改为 returnedContentType : 'json'

然后

 var response=WL.Server.invokeHttp(input);

 if (response.statusCode==200 && response.isSuccessful==true){

                var val =response.DisplayName;

                    return {

                        data:val
                    }
            }
            else{

                return null
            }