I've got a JavaScript object where I've pushed values...
var myObject = [];
myObject.name = "Steve"
myObject.job = "Driver"
Now I want to get those values as JSON, i.e.
{ "name": "Steve", "job": "Driver" }
is this possible? I've tried JSON stringify but it returns an empty object