I have this JSON object returned and I'm trying to parse it to get the value in identifier. Here's what the object looks like if I console.log it:
Object {rows: Array[33], time: 0.015, fields: Object, total_rows: 33}
fields: Object
rows: Array[33]
0: Object
cartodb_id: 28
coordinates: "41.959836,-87.681545"
created_at: "2015-03-05T14:40:43Z"
id: "28"
identifier: "Store Number: 28"
1: Object
2: Object
Here's how I'm trying to parse it:
$.getJSON('https://URLHERE, function(data) {
console.log(data);
var ticks6 = data.rows.map(function() {
return data.rows.identifier;
});
ticks6 returns an array with all values as "undefined". I've tried a bunch of different combinations here and can't get it to parse out the right piece.
data.rows.identifieris really undefined, What do you expect?