Your JSON is not parsed, so in order for JavaScript to be able to access it's values you should parse it first as in line 1:
var result = JSON.parse(object);
alert(result.id);
After your JSON Objected is already parsed, then you can access it's values as following:
alert(result.id);