I saw a JSON code on another site as following that was working:
var jquerycssmenu={
fadesettings: {overduration: 350, outduration: 100}
...
}
So I was writing my own code as following but it didn’t work, I don’t know why:
var CityCountry={
CityCountryOrigin: {City: Vancouver, Country: Canada}
};
Of course it’s incorrect. The difference is that values in that ‘JSON from another site’ are Number literals, but in yours it’s (supposed to be) Strings – hence should be quoted, like this:
Both snippets are not JSON, strictly speaking: they use so-called JavaScript object literals instead.