Can't use $type in jsonata expression


I'm trying to use the $type function ( Object functions · JSONata ) in a jsonata expression.
But it seems it's not recognized as a valid function.

Error evaluating expression:
  Attempted to invoke a non-function

How can I make it work ?
I use it to normalize a json structure.

Best regards

Hi @jc-nr

What version of Node-RED are you using? I just configured a Change to to the expression $type(payload) and it worked.

Can you share your JSONata expression?

Damn, you're right. Using a Node-Red 0.20.3 here. Meaning, it calls Jsonata 1.6.4.
I should have checked that in the first place.

Sorry for the inconvenience...

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