WorkMaze / JUST.net

JUST - JSON Under Simple Transformation (XSLT equivalent for JSON).
MIT License
173 stars 54 forks source link

Split the name using comma is not working #278

Open Nandakumar333 opened 1 year ago

Nandakumar333 commented 1 year ago

Hi Team,

I want to spit name using "," then need to update FirstName and LastName. But if I tried with comma it's not working. Can you give me the solution for this scenario. image

Courela commented 1 year ago

Comma is a reserved character, you need to escape it or use #constant_comma function

#lastindexof(#valueof($.name),#constant_comma())

or

#lastindexof(#valueof($.name),/,)

PS: don't paste images, place text instead, it's easier to copy.