In a PHP file, I am retrieving JSON data that is valid and storing it in a javascript variable called "json".
[
"564654.56464",
"848492.25477",
"918821.54471"
]
When trying to display this data in JavaScript using the following code:
var object = JSON.parse(json);
document.write(object. ..... );
I am unsure of what needs to be added here because my JSON does not follow the format of {"attribute":"value","attribute2":"value2"}.