{"action":"created","issue":{"url":"https://api.github.com/repos/mevdschee/php-crud-api/issues/94","repository_url":"https://api.github.com/repos/mevdschee/php-crud-api","labels_url":"https://api.github.com/repos/mevdschee/php-crud-api/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/mevdschee/php-crud-api/issues/94/comments","events_url":"https://api.github.com/repos/mevdschee/php-crud-api/issues/94/events","html_url":"https://github.com/mevdschee/php-crud-api/issues/94","id":169968676,"number":94,"title":"json output correct?","user":{"login":"PeterPlanlos","id":20655927,"avatar_url":"https://avatars.githubusercontent.com/u/20655927?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterPlanlos","html_url":"https://github.com/PeterPlanlos","followers_url":"https://api.github.com/users/PeterPlanlos/followers","following_url":"https://api.github.com/users/PeterPlanlos/following{/other_user}","gists_url":"https://api.github.com/users/PeterPlanlos/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterPlanlos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterPlanlos/subscriptions","organizations_url":"https://api.github.com/users/PeterPlanlos/orgs","repos_url":"https://api.github.com/users/PeterPlanlos/repos","events_url":"https://api.github.com/users/PeterPlanlos/events{/privacy}","received_events_url":"https://api.github.com/users/PeterPlanlos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-08T16:40:43Z","updated_at":"2016-08-22T17:09:32Z","closed_at":null,"body":"hi, first of all thanks for your work!\r\n\r\ni have a question/issue:\r\nwhy my output ever start with the \"tablename\" ?\r\ncan i prevent this api doing this?\r\nexample of wrong out (i think wrong, all my applications want the json in other format)\r\nwrong :(\r\n###################\r\nGET http://subdomain.url.com/api.php/posts?transform=1\r\nOUTPUT:\r\n{\"posts\":[{\"userid\":\"1\",\"id\":\"1\",\"title\":\"test\",\"body\":\"test\"}]}\r\n###################\r\n\r\ncorrect :)\r\n###################\r\nGET http://subdomain.url.com/api.php/posts?transform=1\r\nOUTPUT:\r\n[\r\n  {\r\n    \"userId\": 1,\r\n    \"id\": 1,\r\n    \"title\": \"test\",\r\n    \"body\": \"test\"\r\n  }\r\n]\r\n###################\r\n\r\nwhy on the \"wrong\" output the int values got \"\" ? <- its okay for me\r\nwhy the table name is include in the json output? <- can i transform this somehow in the api call? \r\n\r\nthank you all reading this very much!"},"comment":{"url":"https://api.github.com/repos/mevdschee/php-crud-api/issues/comments/241481462","html_url":"https://github.com/mevdschee/php-crud-api/issues/94#issuecomment-241481462","issue_url":"https://api.github.com/repos/mevdschee/php-crud-api/issues/94","id":241481462,"user":{"login":"mevdschee","id":1288217,"avatar_url":"https://avatars.githubusercontent.com/u/1288217?v=3","gravatar_id":"","url":"https://api.github.com/users/mevdschee","html_url":"https://github.com/mevdschee","followers_url":"https://api.github.com/users/mevdschee/followers","following_url":"https://api.github.com/users/mevdschee/following{/other_user}","gists_url":"https://api.github.com/users/mevdschee/gists{/gist_id}","starred_url":"https://api.github.com/users/mevdschee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mevdschee/subscriptions","organizations_url":"https://api.github.com/users/mevdschee/orgs","repos_url":"https://api.github.com/users/mevdschee/repos","events_url":"https://api.github.com/users/mevdschee/events{/privacy}","received_events_url":"https://api.github.com/users/mevdschee/received_events","type":"User","site_admin":false},"created_at":"2016-08-22T17:09:32Z","updated_at":"2016-08-22T17:09:32Z","body":"Hi Peter, You are not the first to request int to not have quotes, but there is no \"one size fits all\" solution as there is no match between database types and javascript types. Even an \"int\" as you call it is in Javascript actually a float."}}
{"actor":{"display_login":"mevdschee"}}