karthika pommudu

karthika pommudu

  • NA
  • 321
  • 34.4k

array value in encode json in javascript anyone?

Jan 27 2019 11:39 PM
I want to get the arrayvalue in "address1"
 
 
 
var jArray ='[["Coimbatore, Tamil Nadu, India"],["Virudhunagar, Tamil Nadu, India"],["Salem, Tamil Nadu, India"],["Coimbatore, Tamil Nadu, India"]]';
console.log(jArray[0].Value);
var geocoder;
var map;
var infoWindow = new google.maps.InfoWindow();
//var address[];
//var address2 = document.getElementById('src_city1').value;
for (var i = 0; i < jArray.length; i++)
{
if(geocoder !='undefined')
{
var json_obj = jQuery.parseJSON ( '' );
$(json_obj).each(function(i,val){
$.each(val,function(k,v){
var address1 = JSON.stringify(address);
// console.log(address);
// initialize(address1);
});
});

Answers (11)