My data is in a comma-separated format:
"HotelName","Remained","Date"
"Maxx","4","Jun 26 2016"
"Voyage","3","Jun 24 2016"
I am looking to convert this into a JSON array as shown below. How can I achieve this using my JavaScript code?
[
{
HotelName:"Maxx",
Remained:"4",
Date:"Jun 26 2016"
},
{
HotelName:"Voyage",
Remained:"3",
Date:"Jun 24 2016"
}
]