当前读取的字符为 '<',int 值为 60 无法确定当前字符,它不是字符串、数字、数组或对象 行号 1 索引号 0
*body for the POST method*
```
def jsonBody = [
"grant_type": "refresh_token",
"client_id": "XXXXXXXXXXXXXXXX",
"refresh_token": "XXXXXXXXXXXXXXXXXXXXXXX"
]
def http = new HTTPBuilder('https://account.uipath.com/oauth/token')
http.request(POST, ContentType.JSON) {
//requestContentType = ContentType.JSON
print("inside the request body")
request.addHeader("ContentType", "application/json")
request.addHeader("Host","")
request.addHeader("X-UIPATH-TenantName","XXXXXXXXXXXXX")
print(jsonBody)
body = jsonBody
print("After json body")
response.success = { resp, JSON ->
JSON ?: [:]
print("Success ")
print("Success "+resp)
}
response.failure = { resp, JSON ->
JSON ?: [:]
print("Fail "
print("Fail "+JSON)
}
}```