parse JSON with iterator in coffeescript