{"action":"created","issue":{"url":"https://api.github.com/repos/mongodb/mongo-php-driver/issues/198","labels_url":"https://api.github.com/repos/mongodb/mongo-php-driver/issues/198/labels{/name}","comments_url":"https://api.github.com/repos/mongodb/mongo-php-driver/issues/198/comments","events_url":"https://api.github.com/repos/mongodb/mongo-php-driver/issues/198/events","html_url":"https://github.com/mongodb/mongo-php-driver/issues/198","id":125335285,"number":198,"title":"How to the value of _id field?","user":{"login":"ejzhang","id":452491,"avatar_url":"https://avatars.githubusercontent.com/u/452491?v=3","gravatar_id":"","url":"https://api.github.com/users/ejzhang","html_url":"https://github.com/ejzhang","followers_url":"https://api.github.com/users/ejzhang/followers","following_url":"https://api.github.com/users/ejzhang/following{/other_user}","gists_url":"https://api.github.com/users/ejzhang/gists{/gist_id}","starred_url":"https://api.github.com/users/ejzhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ejzhang/subscriptions","organizations_url":"https://api.github.com/users/ejzhang/orgs","repos_url":"https://api.github.com/users/ejzhang/repos","events_url":"https://api.github.com/users/ejzhang/events{/privacy}","received_events_url":"https://api.github.com/users/ejzhang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-07T06:53:18Z","updated_at":"2016-01-08T12:05:26Z","closed_at":null,"body":"I use $.post method of jQuery to send a request and received the response, but the _id is empty like  screen capture. How i get the value of _id or convert ObjectId to it's value in MongoDB? Thanks very much!\r\n![image](https://cloud.githubusercontent.com/assets/452491/12164053/59fb2dd4-b54d-11e5-9c5b-baadf113fcb7.png)\r\nbtw: How i format fields in MongoDB? e.g. format '20150901180116' to '2015-09-01 18:01:16'."},"comment":{"url":"https://api.github.com/repos/mongodb/mongo-php-driver/issues/comments/169981359","html_url":"https://github.com/mongodb/mongo-php-driver/issues/198#issuecomment-169981359","issue_url":"https://api.github.com/repos/mongodb/mongo-php-driver/issues/198","id":169981359,"user":{"login":"ZorgUK","id":16348873,"avatar_url":"https://avatars.githubusercontent.com/u/16348873?v=3","gravatar_id":"","url":"https://api.github.com/users/ZorgUK","html_url":"https://github.com/ZorgUK","followers_url":"https://api.github.com/users/ZorgUK/followers","following_url":"https://api.github.com/users/ZorgUK/following{/other_user}","gists_url":"https://api.github.com/users/ZorgUK/gists{/gist_id}","starred_url":"https://api.github.com/users/ZorgUK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZorgUK/subscriptions","organizations_url":"https://api.github.com/users/ZorgUK/orgs","repos_url":"https://api.github.com/users/ZorgUK/repos","events_url":"https://api.github.com/users/ZorgUK/events{/privacy}","received_events_url":"https://api.github.com/users/ZorgUK/received_events","type":"User","site_admin":false},"created_at":"2016-01-08T12:05:26Z","updated_at":"2016-01-08T12:05:26Z","body":"It has a __toString() method, just cast it as a string by putting (string) before the variable."}}