I\'m working with the google maps API and trying to stringify an array of points, which each have a latitude and longitude. What I want to do is stringify the data and store
Simply use JSON.stringify({lat: testPoint.lat(), lon: testPoint.lon()}).
JSON.stringify({lat: testPoint.lat(), lon: testPoint.lon()})