nexxbiz / JLio

The project aims to be able to run a JSON noted transformation script to transform other JSON objects.
https://JLio.online
MIT License
5 stars 1 forks source link

function execution instable #34

Closed FransVanEk closed 2 years ago

FransVanEk commented 2 years ago

Having a space between the arguments will fail the execution like

= concat ( 'demo' , 'dheuhnude')

notations are not the same when executing a function

[
  {
    "path": "$.myObject.newProperty",
    "value": "=concat(concat(datetime(),'e'),'b')",
    "command": "add"
  },
  {
    "path": "$.myObject.myDate",
    "value": "=datetime()",
    "command": "add"
  }
]

results in

{
  "newProperty": "12/26/2021 7:37:12 PMeb",
  "myDate": "2021-12-26T19:37:12.663Z"
}