Here the data I get as json from the server?
{id: 1, no: "CP101", pack: "PH"}
How can I read it using javascript? when I use
var obj = JSON.parse('{id: 1, no: "CP101", pack: "PH"}');
document.getElementById("demo").innerHTML = obj.id + ", " + obj.no;
Gives me No output.