I have a json-object, which I print to the screen (using alert()-function):
alert(object);
Here is the result:
Then I want
In JavaScript, object properties can be accessed with . operator or with associative array indexing using []. I.e. object.property is equivalent to object["property"]
[]
object["property"]
You can try:
var obj = JSON.parse(Object); alert(obj.id);