While creating an JSONata expression I have encountered an error :
"Error evaluating expression:
Argument 1 of function "replace" does not match function signature"
but when I put .(dot) after the payload in the JSONata expression then an array of object is returned. However, I want the output to be a single object.
Can anyone please explain what's happening and how to correct this, if it's possible.
Note: I am new to JSONata and also I don't have deep knowledge of node-red either.
Link for Flow code: