5 hours ago - last edited 5 hours ago
I’m working with a dynamic list in Workato and building a JSON string using format_map.
My current formula looks like this:
='{' +
( _dp('...ResponseBody...') == null ? '' :
_dp('...ResponseBody...').format_map('"%{Key}":"%{Value}"').join(',')
) +
'}'
{"data":"null"}
{"data":null}
Is there a recommended way in Workato to handle this type-aware formatting inside format_map, or any other approach to correctly build a valid JSON object from a dynamic list?