How do you convert a comma separated list into json using Javascript / jQuery?
e.g.
Convert the following:
var names = "Mark,Matthew,Luke,John,";
into:
var jsonified = {
names: [
{name: "Mark"},
{name: "Mattew"},
{name: "Luke"},
{name: "John"}
]
};