I am looking for a way that I can use JSON as a configuration file,
My JSON configuration file looks like this:
{ 'Lang' : 'EN', 'URL' : '/over/dose/app' }
and I want to get the URL and Lang in the html file using javascript or jQuery. I do not want to use an asynchronous method, for example $.getJson .
I want to get Url and language from a JSON file something like this:
var url = myjson.URL;
so I can use var later in many different functions.
json javascript jquery
Stranger B.
source share