Trying to use jsonata to reduce array of objects. Test data works OK but fails when deployed

Just started using node red. Have spent hours trying to get this to work! I have an array of objects which have entries for the next 72 hours ( JSON data from Solcast for PV forecasting) I'm only interested in tomorrows so using jsonata to just pick out those using the date. I have used test data in the node (copied from debug) and all looks fine. However, when I deploy and execute the node it always returns an empty object. Hopefully the screen shot shows the details, but the jsonata is:
{
"tomorrows PV forecast" :
msg.* [
$contains(
period_end,
$fromMillis(
$millis()+10006060*24,
'[Y0001]-[M01]-[D01]'
)
)
]
}

I suspect your test data is wrong
it should be

{
  "payload":{
    Your test data.
    }
}

thank you - i had just copied the object from the debug panel!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.