JavaScript Code:
var latitude = document.getElementById("<%=txt_Lat.ClientID %>").value;
var longitude = document.getElementById("<%=txt_Long.ClientID %>").value;
var jsonData = {latitude: latitude, longitude: longitude};
var jsonString = JSON.stringify(jsonData);
var centerPoint = new google.maps.LatLng(jsonData.latitude, jsonData.longitude);
What is the best way to transfer TextBox values as JSON using JavaScript?