I am struggling with something very simple, which might be why I cannot find the solution. (Most topics on this subject are far more complex.) I am getting an error when Parse JSON is a simple string (but not with integer or boolean). Error message is "The 'content' property of actions of type 'ParseJson' must be valid JSON."
This works (where input field are the letters true with no surrounding quotes:
{
"inputs": {
"content": true,
"schema": {
"type": "boolean"
}
}
}
But this fails (where input fields reads abc with or without surrounding quotes:
{
"inputs": {
"content": "abc",
"schema": {
"type": "string"
}
}
}
For the following, I will just show the content value... the schema all remain as "type": "string"
These succeeds with output { "body": "x" }
"@if( true, '\"x\"', '\"y\"' )"
"@concat( '\"', if( true, 'x', 'y' ), '\"' )"
while these fail (the 1st line is same expression as 2nd line but wrapped in quotes within Input field)
"@{if( true, 'x', 'y' )}"
"@if( true, 'x', 'y' )"
Am I constrained to wrapping quotes inside of expression?

Report
All responses (
Answers (