I am trying to create a user that has a username, password and playlist. The playlist should be an array that holds a json objects which looks like {"Songname": upvotecount} which are both a string and number. When I try to create the object, the username and password are created fine, but the playlist won't create properly. I would appreciate any help on how to create this object properly. Thanks for the help in advance.
var user = new User({
username: user,
password: pass,
playlist: [{String : Number}]
});