from-json(string, fallback?) function not working as expected #220
Unanswered
SavinayaShetty
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Yes, that's a bug. Thank you for reporting it so clearly. Looks like when |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
JSLT functions Document (ref link) states following about from-json(string, fallback?) function-
EX: 1 - Working Fine
input:
template:
from-json(.postback, null)output:
As per the template if the postback is not a valid json, it should return null. But in the following case, it is giving unusual output.
EX: 2 - Unusual output
input:
template:
from-json(.postback, null)output:
"name"Is this a bug in 'from-json' function?
Beta Was this translation helpful? Give feedback.
All reactions