我有一个GET请求,它以下列格式返回响应:
"http://wso2.org/claims/role": [
Application/API_ADMIN_SSO",
],
"http://wso2.org/claims/applicationtier": "Unlimited",
"http://wso2.org/claims/keytype": "PRODUCTION",
"http://wso2.org/claims/version": "v1",
"iss": "wso2.org/products/am"
我如何匹配这些字段,因为如果我这样做
And match response.http://wso2.org/claims/applicationtier == "PRODUCTION"
它抛出并且错误说路径不存在。
* def response = { "http://wso2.org/claims/applicationtier": "PRODUCTION" }
* match response['http://wso2.org/claims/applicationtier'] == 'PRODUCTION'