I'm trying to loop through my data I received when doing a jquery .post however it's showing up as a much higher count than it is. What is making it say 109 as the length of data?
.done(function( data ) {
console.log(data);
console.log(data.length);
});
Below is the console logs:
[{"lat":33.115868,"lng":-117.186295},{"lat":33.117237,"lng":-117.186295},{"lat":33.111866,"lng":-117.186295}]
109
json string. specify the data type asjson, then jquery will parse thejson stringand return javascript object.