Fixed the weird objects JSON parsing issue (and removed corresponding workaround)

I still don't know why this was happening, but using `forEach` seems to
do the trick (i guess scope context was somehow screwed up by something)