Current Behavior:
When using the "retain all errors" option of the Merge Errors function the combined error message JSON output is not a valid JSON string.
This is the source output of Merge Errors when retain all errors is active - it is not a valid JSON string.
<JSONErrorMultiple_1.0>[{
"status": true,
"code": 111,
"source": "This is a test message including\nnewlines"
},{
"status": true,
"code": 222,
"source": "This is a test message including\nnewlines"
}]
Desired Behavior:
Make the combined errors source string a valid JSON string so that it can be parsed by other tools.
Valid JSON string:
[{"status":true,"code":111,"source":"This is a test message including\nnewlines"},{"status":true,"code":222,"source":"This is a test message including\nnewlines"}]
The above JSON string can be formatted nicely by most tools - e.g. JSON pretty print - https://jsonformatter.org/json-pretty-print
The below string including the JSONErrorMultiple_1.0 key (but formatted correctly) also works:
{"<JSONErrorMultiple_1.0>":[{"status": true,"code": 111,"source": "This is a test message including\nnewlines"},{"status": true,"code": 222,"source": "This is a test message including\nnewlines"}]}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.