Ниже JSON
служит ответом -
{
"result": {
"status": "ERROR",
"error": {
"errorCode": "x500",
"errorType": "string500",
"errorMessage": "string700"
}
}
}
Я успешно могу извлечь следующие переменные -
<JSONPayload>
<Variable name="result">
<JSONPath>$.result</JSONPath>
</Variable>
<Variable name="status">
<JSONPath>$.result.status</JSONPath>
</Variable>
<Variable name="errorCode">
<JSONPath>$.result.error.errorCode</JSONPath>
</Variable>
<Variable name="errorType">
<JSONPath>$.result.error.errorType</JSONPath>
</Variable>
<Variable name="errorMessage">
<JSONPath>$.result.error.errorMessage</JSONPath>
</Variable>
</JSONPayload>
Однако, когда я пытаюсь извлечь Завершить error
объект из JSON
объекта, он показывает Не удалось выполнить ExtractVariables
<Variable name="error">
<JSONPath>$.result.error</JSONPath>
</Variable>