Using JSON object using Angular and rest service <p>I have this service method</p> <pre><code>public object Get(EmployeeAccountsRequest request) { var list=userList.ToList(); var jsonSerialiser = new JavaScriptSerializer(); var json = jsonSerialiser.Serialize(list); return json; } </code></pre> <p>Definition of EmployeeAccountRequest request class</p> <pre><code>[Route("/employeeaccount", "GET")] public class AllUserAccountsRequest : IReturn&lt;object&gt; { public int projectNumber{ get; set; } public int class{ get; set; } } </code></pre> <p>which returns following JSON object.</p> <pre><code>[{"name": "Moroni", "allowance": 550, "paid": true}, {"name": "Tiancum", "allowance": 53, "paid": false}, {"name": "Jacob", "allowance": 27, "paid": false}] </code></pre> <p>Resource to get this data from service is as following:</p> <pre><code> angular.module('accService', ['ngResource']).factory('EmployeeAccount', function($resource) { return $resource('/api/employeeaccount/:id', {}, { get: { method: 'GET', }, query: { method: 'GET', }, update: { method: 'PUT' }, }); }); </code></pre> <p>And trying to receive this value in controller </p> <pre><code> var app = angular.module('EmployeeApp'); app.controller('EmployeeAccountsController', function($scope, $http, EmployeeAccount) { console.log(EmployeeAccount.query()) } </code></pre> <p>But i am not receiving the JSON object here. The above setup works fine if i return a list of array from my method.</p> <p>So the question becomes why would a list of array is received properly and not a simple JSON object. Please let me know, if more information is needed.</p>