{"action":"opened","issue":{"url":"https://api.github.com/repos/l-lin/angular-datatables/issues/752","repository_url":"https://api.github.com/repos/l-lin/angular-datatables","labels_url":"https://api.github.com/repos/l-lin/angular-datatables/issues/752/labels{/name}","comments_url":"https://api.github.com/repos/l-lin/angular-datatables/issues/752/comments","events_url":"https://api.github.com/repos/l-lin/angular-datatables/issues/752/events","html_url":"https://github.com/l-lin/angular-datatables/issues/752","id":158556402,"number":752,"title":"Use JSONArray from Java as datasource","user":{"login":"ejdistor","id":16577290,"avatar_url":"https://avatars.githubusercontent.com/u/16577290?v=3","gravatar_id":"","url":"https://api.github.com/users/ejdistor","html_url":"https://github.com/ejdistor","followers_url":"https://api.github.com/users/ejdistor/followers","following_url":"https://api.github.com/users/ejdistor/following{/other_user}","gists_url":"https://api.github.com/users/ejdistor/gists{/gist_id}","starred_url":"https://api.github.com/users/ejdistor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ejdistor/subscriptions","organizations_url":"https://api.github.com/users/ejdistor/orgs","repos_url":"https://api.github.com/users/ejdistor/repos","events_url":"https://api.github.com/users/ejdistor/events{/privacy}","received_events_url":"https://api.github.com/users/ejdistor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-05T14:16:59Z","updated_at":"2016-06-05T14:16:59Z","closed_at":null,"body":"Hi,\r\n\r\nI have a Java controller that returns a JSONArray\r\n\r\n       @RequestMapping(value = \"/welcome\", method = RequestMethod.POST)\r\n\tpublic ModelAndView test() throws IOException{\r\n\t\tList<User> user = new ArrayList();\r\n\t\t\r\n\t\tuser.add(new User(\"1\", 1, \"1a\"));\r\n\t\tuser.add(new User(\"2\", 2, \"2a\"));\r\n\t\tuser.add(new User(\"3\", 3, \"3a\"));\r\n\t\t\r\n\t\tModelAndView model = new ModelAndView(\"test\");\r\n\t\tmodel.addObject(\"user\", new JSONArray(user));\r\n\t\t\r\n\t\treturn model;\r\n\t}\r\n\r\nCan I use this JSONArray as my data source for angular datatables?\r\n\r\nThank you very much"}}
{"actor":{"display_login":"ejdistor"}}