I've been plowing this website for a long, long time but can't find the answer to how to convert this json array into human readable and usable values.
An alert shows decently this:
{"item1":"value1","item2":"value2","item3":"value3"}
I want to use the values like this:
succes: function(data) {
alert(value1);
$("#div").append(value1);
}
But it seems I just don't have this in my Jquery vocabulaire yet. All alerts give undefined values.
Could sure use some help here!
Edit:
$.ajax({
type: "POST",
url: "/include/process/xxxx.php",
data: dataString,
success: function(data) {
alert(data); alert(data.item1);
}
});