I have created a json object from ruby with cobravsmongoose, however the attributes have the @ symbol in front of them. Whenever I try to access them with standard object notation in JavaScript, such as object.object.object.@attribute I get a parse error. Is there another way to access these objects?
I have created a json object from ruby with cobravsmongoose, however the attributes have
Share
Grab your JSON as a string instead. Do a replace to clean up the @ symbols, and recreate it as JSON.