1 year ago
#350502
rama devi
Display the value depends on refrence number using jsonata
{ "message":{ "Data":"account/product", "Refno":"654" } }
I need output like if data field is as account then Refno will be 64 If my data field is product the Refno will be empty string I tried this logic: message.{ "Data":"account", "Refno":($.Data='account')?$.Refno:"" } But this logic is not working Please anyone help me out
jsonata
0 Answers
Your Answer