```
    $.ajax({
        type: "POST",
        contentType: "application/json; charset=utf-8",
        url: "MapImages.aspx/GetCctvData",
        data: "{}",
        dataType: "json",
        success: function (data) {

            var markers = '';
            var c = 0;
                 for (var j = 0; j < data.d.length; j++) {
                     markers = markers + '{'+
                        ' "title":'+'"'+ data.d[j].Name+'"'+','+ '"lat":'+'"'+data.d[j].Lat +'"'+','+' "lng":'+'"'+data.d[j].Lng +'"'+','+
                         '"img":' +'"'+ data.d[j].Url +'"'+ '}';

                     {
                     if(c!=97)
                         markers = markers +',';
                     }
                     c++;
                 }
                 markers= '[' + markers + ']';

        },
        error: function (result) {
            alert(data.d[i].Name);
        }
    });

</script>

```

The output of markers consists such as:

```
  "[{ 
"title":"Simpang Pulai KM285.2",
"lat":"4.5425", "lng":"101.141",
"img":"http://plus.aviven.net/push/images/cctv/c3781ad96bde24b6a588c875ec58a57c.jpg"
}]"

```

Required output is:

```
  [{ 
"title":"Simpang Pulai KM285.2",
"lat":"4.5425", "lng":"101.141",
"img":"http://plus.aviven.net/push/images/cctv/c3781ad96bde24b6a588c875ec58a57c.jpg"
}]

```