c# dictionary to javascript object code example
Example: how does a dictionary from c# translate into js
var dictionaryVariable //dictionary recieved from C#
dictionaryVariable["Key"] //will return specified key's value
for (var d in dictionaryVariable)
{
if (dictionaryVariable.hasOwnProperty(d))
{
alert(d + ' ' + dictionaryVariable[d]); //displays key and value of all dictionary entries
}
}