{"action":"created","issue":{"url":"https://api.github.com/repos/zonyitoo/bson-rs/issues/9","labels_url":"https://api.github.com/repos/zonyitoo/bson-rs/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/zonyitoo/bson-rs/issues/9/comments","events_url":"https://api.github.com/repos/zonyitoo/bson-rs/issues/9/events","html_url":"https://github.com/zonyitoo/bson-rs/pull/9","id":96892642,"number":9,"title":"Format display","user":{"login":"saghm","id":5875560,"avatar_url":"https://avatars.githubusercontent.com/u/5875560?v=3","gravatar_id":"","url":"https://api.github.com/users/saghm","html_url":"https://github.com/saghm","followers_url":"https://api.github.com/users/saghm/followers","following_url":"https://api.github.com/users/saghm/following{/other_user}","gists_url":"https://api.github.com/users/saghm/gists{/gist_id}","starred_url":"https://api.github.com/users/saghm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saghm/subscriptions","organizations_url":"https://api.github.com/users/saghm/orgs","repos_url":"https://api.github.com/users/saghm/repos","events_url":"https://api.github.com/users/saghm/events{/privacy}","received_events_url":"https://api.github.com/users/saghm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-23T19:53:53Z","updated_at":"2015-07-27T14:49:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/zonyitoo/bson-rs/pulls/9","html_url":"https://github.com/zonyitoo/bson-rs/pull/9","diff_url":"https://github.com/zonyitoo/bson-rs/pull/9.diff","patch_url":"https://github.com/zonyitoo/bson-rs/pull/9.patch"},"body":"For the logging functionality in the MongoDB driver, we need to be able to print out documents in the format that they would appear in the shell. The ability to print the documents in a readable format would be useful for almost anyone using BSON, though."},"comment":{"url":"https://api.github.com/repos/zonyitoo/bson-rs/issues/comments/125232445","html_url":"https://github.com/zonyitoo/bson-rs/pull/9#issuecomment-125232445","issue_url":"https://api.github.com/repos/zonyitoo/bson-rs/issues/9","id":125232445,"user":{"login":"saghm","id":5875560,"avatar_url":"https://avatars.githubusercontent.com/u/5875560?v=3","gravatar_id":"","url":"https://api.github.com/users/saghm","html_url":"https://github.com/saghm","followers_url":"https://api.github.com/users/saghm/followers","following_url":"https://api.github.com/users/saghm/following{/other_user}","gists_url":"https://api.github.com/users/saghm/gists{/gist_id}","starred_url":"https://api.github.com/users/saghm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saghm/subscriptions","organizations_url":"https://api.github.com/users/saghm/orgs","repos_url":"https://api.github.com/users/saghm/repos","events_url":"https://api.github.com/users/saghm/events{/privacy}","received_events_url":"https://api.github.com/users/saghm/received_events","type":"User","site_admin":false},"created_at":"2015-07-27T14:49:23Z","updated_at":"2015-07-27T14:49:23Z","body":"I just took another look at how the MongoDB shell prints out the binary values, and it's actually much stranger than I thought (for instance, both \"hello---\" and \"hello___\" get printed out as \"helloAAA\", and I really have no clue why). Trying to emulate this properly would be much more work than I originally thought would be, so I think it's probably better to just go with your `to_hex()` suggestion and just print out the raw number."}}