SyntaxFix
Write A Post
Hire A Developer
Questions
The syntax you wrote as first is not valid. You can achieve something using the follow:
var map = {"aaa": "rrr", "bbb": "ppp" /* etc */ };