angular/angular.js — pull request #671 by tleruitte (2011-11-23 13:39:44+00:00)
Title: Add support for no top-level json array

The $resource service relies on the fact that JSON arrays are top-level arrays. However, JSON shouldn't contains top-level array for security reasons (see http://flask.pocoo.org/docs/security/#json-security).

This patch allows the usage of isArray:true in the $resource services. The expected JSON is a top-level object which contains an array:
{
foo: [bar, baz]
}