Not sure what you mean when you say send json but you can do it with this function:
function getLatLong(address){
var geo = new google.maps.Geocoder;
geo.geocode({'address':address},function(results, status){
if (status == google.maps.GeocoderStatus.OK) {
return results[0].geometry.location;
} else {
alert("Geocode was not successful for the following reason: " + status);
}
});
}
that will return an object which you can reference with .lat() and .lng() to get the latitude and longitude.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…