Convert a delimited string to JSON object with set of keys and values from the string
I have a string like this var string = "1234|Tom|NYC|Student|Active" and I want to map to something like in typescript NodeJS API { "Id": 1234, "Name": "Tom", "City": "NYC", "Title": "Student", "Status": "Active", } Here the key comes from a…