could be changed to a push, like: places_data.push( JSON.parse (json_array[json_index]));
Fewer moving parts that way.