Hi @vnmdr-ap, I think this comment and the discussion around it might answer your question on using an array in your expression.
tl;dr try { "ip": {"$in": {{JSON.stringify($json["ip"])}} }}
as your expression which should generate the string you have in mind (this is the JavaScript magic behind it)
Let me know if you have any questions on this!