{"action":"created","issue":{"url":"https://api.github.com/repos/parse-community/parse-php-sdk/issues/319","repository_url":"https://api.github.com/repos/parse-community/parse-php-sdk","labels_url":"https://api.github.com/repos/parse-community/parse-php-sdk/issues/319/labels{/name}","comments_url":"https://api.github.com/repos/parse-community/parse-php-sdk/issues/319/comments","events_url":"https://api.github.com/repos/parse-community/parse-php-sdk/issues/319/events","html_url":"https://github.com/parse-community/parse-php-sdk/issues/319","id":232341694,"number":319,"title":"json_encode shows empty objects","user":{"login":"mauriciord","id":1128701,"avatar_url":"https://avatars3.githubusercontent.com/u/1128701?v=3","gravatar_id":"","url":"https://api.github.com/users/mauriciord","html_url":"https://github.com/mauriciord","followers_url":"https://api.github.com/users/mauriciord/followers","following_url":"https://api.github.com/users/mauriciord/following{/other_user}","gists_url":"https://api.github.com/users/mauriciord/gists{/gist_id}","starred_url":"https://api.github.com/users/mauriciord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauriciord/subscriptions","organizations_url":"https://api.github.com/users/mauriciord/orgs","repos_url":"https://api.github.com/users/mauriciord/repos","events_url":"https://api.github.com/users/mauriciord/events{/privacy}","received_events_url":"https://api.github.com/users/mauriciord/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-30T18:31:17Z","updated_at":"2017-05-30T21:47:02Z","closed_at":null,"body":"Hi, i need to pass a Query result as JSON, but my return is that:\r\n```\r\n[{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}]\r\n```\r\nMy code:\r\n```php\r\n$lotQuery = new ParseQuery(\"Loteamento\");\r\n$lotQuery->notEqualTo(\"deletado\", True);\r\n$lotQuery->descending(\"estagio\");\r\n$lotQuery->select([\"cidade\", \"bairro\", \"estado\", \"logo\", \"slug\", \"nome\", \"tipo\", \"estagio\"]);\r\n$lotResults = $lotQuery->find();\r\n\r\n// this is something like json_encode($lotResults), but with Headers set\r\n$newResponse = $response->withJson($lotResults, 201);\r\n\r\nreturn $newResponse;\r\n```\r\n\r\nWhy ?"},"comment":{"url":"https://api.github.com/repos/parse-community/parse-php-sdk/issues/comments/305018161","html_url":"https://github.com/parse-community/parse-php-sdk/issues/319#issuecomment-305018161","issue_url":"https://api.github.com/repos/parse-community/parse-php-sdk/issues/319","id":305018161,"user":{"login":"montymxb","id":5070304,"avatar_url":"https://avatars2.githubusercontent.com/u/5070304?v=3","gravatar_id":"","url":"https://api.github.com/users/montymxb","html_url":"https://github.com/montymxb","followers_url":"https://api.github.com/users/montymxb/followers","following_url":"https://api.github.com/users/montymxb/following{/other_user}","gists_url":"https://api.github.com/users/montymxb/gists{/gist_id}","starred_url":"https://api.github.com/users/montymxb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/montymxb/subscriptions","organizations_url":"https://api.github.com/users/montymxb/orgs","repos_url":"https://api.github.com/users/montymxb/repos","events_url":"https://api.github.com/users/montymxb/events{/privacy}","received_events_url":"https://api.github.com/users/montymxb/received_events","type":"User","site_admin":false},"created_at":"2017-05-30T21:47:02Z","updated_at":"2017-05-30T21:47:02Z","body":"You can run `json_decode` to decode that JSON before use. Any characters escaped by `json_encode` will be returned as they were during the decoding process."}}
{"actor":{"display_login":"montymxb"}}