If I have a blog post and I push comments with the line:
blogpost.comments.push({ username: "fred", comment: "Great"});
the comments section of JSON looks like this:
"comments":[{"0":{"username":"jim","comment":"Good",},"1":{"username":"fred","comment":"great"}}]
Ideally I'd like to see the JSON without the numerical additions ("0","1", etc) and flatter. Something like:
"comments":[{"username":"jim","comment":"Good"},{"username":"fred","comment":"great"}]
What do I need to change to get this?