I have returned some data from an Ajax call and displayed it in an alert. All the data is there.
success:function(data) {
alert(data);
Looks like this {"type":"mytype","size":"mysize""width":"mywidth"}
How do I get them into variables. like
var x = mytype;
var y = mysize;
var z = mywidth;