I have a API response
{
“success”: false,
“errors”: [
{
“message”: “Erro happened during integration.”,
}
],
“created”: true
}
I want to convert it as payload to json value as
{
“ErrorLog”: “{\r\n "success": false,\r\n "errors": [\r\n {\r\n "message": "Erro happened during integration.",\r\n }\r\n ],\r\n "created": true\r\n}”
}
Is there a better or elegant way than I did.
convert Json to json.morph (5.4 KB)