I have JSON file that contains :
{
\"age\": 0,
\"id\": \"motorola-xoom-with-wi-fi\",
\"imageUrl\": \"img/phones/motorola-xoom-with-wi-fi.0.jpg\",
try this
var phones = {"age" : "0", "id" : "motorola-xoom-with-wi-fi", "imageUrl" : "img/phones/motorola-xoom-with-wi-fi.0.jpg", "name" : "Motorola XOOM\u2122 with Wi-Fi", "snippet" : "The Next Next Generation Experience the future with Motorola XOOM with Wi-Fi, the worlds first tablet powered by Android 3.0 (Honeycomb)."};
var arr = phones;
console.log(arr);
var out = "- age : " + arr.age + "
- id : " + arr.id + "
- name : " + arr.name + "
- snippet : " + arr.snippet + "
"
document.getElementById("div1").innerHTML = out;