Body comes back as a string. You need to perform a JSON parse on it first.
For example this is directly from SHINE:
| var errorRes = JSON.parse(oError.response.body); |
sap.m.MessageBox.alert(errorRes.error.message.value);
Body comes back as a string. You need to perform a JSON parse on it first.
For example this is directly from SHINE:
| var errorRes = JSON.parse(oError.response.body); |
sap.m.MessageBox.alert(errorRes.error.message.value);