I have generated some JSON code with the NuGet Packet Newtonsoft JsonConvert. But what I want is now to import that code into a javascript file so I can create a google map.
My Json code looks like this:
[
{
"title": 'Alibaug',
"lat": '18.641400',
"lng": '72.872200',
"description": 'Alibaug is a coastal town and a municipal council in Raigad District in the Konkan region of Maharashtra, India.'
},
{
"title": 'Mumbai',
"lat": '18.964700',
"lng": '72.825800',
"description": 'Mumbai formerly Bombay, is the capital city of the Indian state of Maharashtra.'
},
{
"title": 'Pune',
"lat": '18.523600',
"lng": '73.847800',
"description": 'Pune is the seventh largest metropolis in India, the second largest in the state of Maharashtra after Mumbai.'
}
];
The language I use is C# in an asp.net form project.
Have also a look on my previous question: https://stackoverflow.com/questions/31480598/make-routes-on-google-map-in-asp-net-website
Any Ideas for solve my problem?
Thanks
var arr=[.....]; alert(arr[0].title);