{"action":"created","issue":{"url":"https://api.github.com/repos/EE/karma-ng-json2js-preprocessor/issues/10","labels_url":"https://api.github.com/repos/EE/karma-ng-json2js-preprocessor/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/EE/karma-ng-json2js-preprocessor/issues/10/comments","events_url":"https://api.github.com/repos/EE/karma-ng-json2js-preprocessor/issues/10/events","html_url":"https://github.com/EE/karma-ng-json2js-preprocessor/issues/10","id":65208552,"number":10,"title":"Provide JSONs via $httpBackend","user":{"login":"gustavohenke","id":826553,"avatar_url":"https://avatars.githubusercontent.com/u/826553?v=3","gravatar_id":"","url":"https://api.github.com/users/gustavohenke","html_url":"https://github.com/gustavohenke","followers_url":"https://api.github.com/users/gustavohenke/followers","following_url":"https://api.github.com/users/gustavohenke/following{/other_user}","gists_url":"https://api.github.com/users/gustavohenke/gists{/gist_id}","starred_url":"https://api.github.com/users/gustavohenke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gustavohenke/subscriptions","organizations_url":"https://api.github.com/users/gustavohenke/orgs","repos_url":"https://api.github.com/users/gustavohenke/repos","events_url":"https://api.github.com/users/gustavohenke/events{/privacy}","received_events_url":"https://api.github.com/users/gustavohenke/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-30T13:14:31Z","updated_at":"2015-04-01T17:21:53Z","closed_at":"2015-04-01T17:03:43Z","body":"Hey,\r\nIt would be awesome if this plugin could provide the JSON files via `$httpBackend` backend definitions:\r\n\r\n```js\r\n$httpBackend.whenGET('my.json').respond(...)\r\n```\r\n\r\nThanks in advance!"},"comment":{"url":"https://api.github.com/repos/EE/karma-ng-json2js-preprocessor/issues/comments/88563965","html_url":"https://github.com/EE/karma-ng-json2js-preprocessor/issues/10#issuecomment-88563965","issue_url":"https://api.github.com/repos/EE/karma-ng-json2js-preprocessor/issues/10","id":88563965,"user":{"login":"mzgol","id":1758366,"avatar_url":"https://avatars.githubusercontent.com/u/1758366?v=3","gravatar_id":"","url":"https://api.github.com/users/mzgol","html_url":"https://github.com/mzgol","followers_url":"https://api.github.com/users/mzgol/followers","following_url":"https://api.github.com/users/mzgol/following{/other_user}","gists_url":"https://api.github.com/users/mzgol/gists{/gist_id}","starred_url":"https://api.github.com/users/mzgol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzgol/subscriptions","organizations_url":"https://api.github.com/users/mzgol/orgs","repos_url":"https://api.github.com/users/mzgol/repos","events_url":"https://api.github.com/users/mzgol/events{/privacy}","received_events_url":"https://api.github.com/users/mzgol/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T17:21:53Z","updated_at":"2015-04-01T17:21:53Z","body":"> True, but you could export a new module with a run block.\r\n\r\nI need the `$httpBackend` from `angular-mocks` and here I'd get the one from regular Angular that doesn't work, so this would require to load the JSON files after `angular-mocks`. Also, not all people will want this auto-loading to work so this would need to be a config option, not sure if that's possible with a Karma preprocessor."}}