The typical way of creating a Javascript object is the following:
var map = new Object(); map[myKey1] = myObj1; map[myKey2] = myObj2;
I need to
The syntax you wrote as first is not valid. You can achieve something using the follow:
var map = {"aaa": "rrr", "bbb": "ppp" /* etc */ };