We are building our website using Dojo javascript only. For some functionalities, we want to use config files to populate some properties and list items during run time. I know how to Deserialize the XML file in C# server side code, but can I do the same thing in Javascript? Is there any examples that I can reference?
Thanks,
Wei
You might be looking for Dojo.fromJson:
http://dojotoolkit.org/reference-guide/1.7/dojo/fromJson.html#dojo-fromjson
If you get th JSON String in JavaScript, you can just use that function to turn it into objects.
Also, eval() is generally discouraged. When is JavaScript's eval() not evil?