Hi Everyone,
How can i do a null check before going into the loop to avoid “obj must be a list of dicts or a nested dict” error
Thanks
Hi Everyone,
How can i do a null check before going into the loop to avoid “obj must be a list of dicts or a nested dict” error
Thanks
I have tried this but not work
Hard to say without seeing what is in your result var but you probably need to make use of default filter
something like
“{{ result.targets|default()|subelements(‘url’) }}”
perhaps, but I’m guessing a bit as I don’t know which bit of the results structure is not present.
Hope this helps,
Jon
Hi Jon,
It works now. Thanks a lot.