Question related to filter the following json i got out of my google sheet mapping. I would like to filter out the empty entry. So in the below example, I would like to filter out FOO as there is empty value.
[
{
"FOO":"",
"BAR":"INFO",
}
]
Apologies if this is trivial but i’m really struggling and i found filter for KEY > Value {} but it seeem that for my case i’m having an array {} and and object with key values but I’m still not very sure.
I tried to use javascript - How can I access and process nested objects, arrays, or JSON? - Stack Overflow as guidance for the code element in n8n but no success so far.
Works like a charm.
Thank you so much.
so if i understand your code it is item part of an array [] and property part of the object {} ? so there is no really key per say to filter.