Open throrin19 opened 1 year ago
Hello,
I have a problem with forEach in a case the string contains special chars for JSON (like ").
"
If we try to use the $forEach with one of this value, we have the error Interpolated template is not a valid JSON :
$forEach
Interpolated template is not a valid JSON
Example :
$forEach: iterator: - test: '{"example": "example"}' template: $forEach.key: $forEach.value
to avoid that, I think we should make a JSON.stringify on the value part of interpolated
JSON.stringify
value
Hello,
I have a problem with forEach in a case the string contains special chars for JSON (like
"
).If we try to use the
$forEach
with one of this value, we have the errorInterpolated template is not a valid JSON
:Example :
to avoid that, I think we should make a
JSON.stringify
on thevalue
part of interpolated