Update resource.js

In reference to this pull request, an update in the documentation is the best way to go about it: https://github.com/angular/angular.js/pull/8632
ticks around angular.fromJson