This content has been marked as final.
Show 3 replies
-
1. Re: How to remove {} in with empty arrays
Rich Bateman Mar 5, 2021 6:12 AM (in response to User6392 N)Hello-
Have you tried this expression on your output?
util:parseXML(util:toXML(your_field))
When I run that on your sample payload this is the response:
{ "Output": [ { "Response": { "ABC": [ { "ABC12": [ { "Y1": "W4645U6Y", "Y2": "3", "Y3": "0" } ], "ABC34": [ null ], "x1": " XX", "x2": "43TRG", "x3": "0", "x4": " RGFD" } ] } } ] }
-
2. Re: How to remove {} in with empty arrays
User6392 N Mar 7, 2021 7:57 PM (in response to Rich Bateman) -
3. Re: How to remove {} in with empty arrays
Prakash Jain Mar 16, 2021 6:04 AM (in response to User6392 N)Hi,
You may also try to use replace function to {} with nothing like replace($variable, '{}','')
Thanks,
Prakash Jain