{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/27588","repository_url":"https://api.github.com/repos/rails/rails","labels_url":"https://api.github.com/repos/rails/rails/issues/27588/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/27588/comments","events_url":"https://api.github.com/repos/rails/rails/issues/27588/events","html_url":"https://github.com/rails/rails/pull/27588","id":199165913,"number":27588,"title":"PostgreSQL JSONB columns do not preserve the key order of hashes","user":{"login":"bradleypriest","id":167215,"avatar_url":"https://avatars.githubusercontent.com/u/167215?v=3","gravatar_id":"","url":"https://api.github.com/users/bradleypriest","html_url":"https://github.com/bradleypriest","followers_url":"https://api.github.com/users/bradleypriest/followers","following_url":"https://api.github.com/users/bradleypriest/following{/other_user}","gists_url":"https://api.github.com/users/bradleypriest/gists{/gist_id}","starred_url":"https://api.github.com/users/bradleypriest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradleypriest/subscriptions","organizations_url":"https://api.github.com/users/bradleypriest/orgs","repos_url":"https://api.github.com/users/bradleypriest/repos","events_url":"https://api.github.com/users/bradleypriest/events{/privacy}","received_events_url":"https://api.github.com/users/bradleypriest/received_events","type":"User","site_admin":false},"labels":[{"id":107191,"url":"https://api.github.com/repos/rails/rails/labels/activerecord","name":"activerecord","color":"0b02e1","default":false},{"id":70310659,"url":"https://api.github.com/repos/rails/rails/labels/PostgreSQL","name":"PostgreSQL","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":{"login":"sgrif","id":1529387,"avatar_url":"https://avatars.githubusercontent.com/u/1529387?v=3","gravatar_id":"","url":"https://api.github.com/users/sgrif","html_url":"https://github.com/sgrif","followers_url":"https://api.github.com/users/sgrif/followers","following_url":"https://api.github.com/users/sgrif/following{/other_user}","gists_url":"https://api.github.com/users/sgrif/gists{/gist_id}","starred_url":"https://api.github.com/users/sgrif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgrif/subscriptions","organizations_url":"https://api.github.com/users/sgrif/orgs","repos_url":"https://api.github.com/users/sgrif/repos","events_url":"https://api.github.com/users/sgrif/events{/privacy}","received_events_url":"https://api.github.com/users/sgrif/received_events","type":"User","site_admin":false},"assignees":[{"login":"sgrif","id":1529387,"avatar_url":"https://avatars.githubusercontent.com/u/1529387?v=3","gravatar_id":"","url":"https://api.github.com/users/sgrif","html_url":"https://github.com/sgrif","followers_url":"https://api.github.com/users/sgrif/followers","following_url":"https://api.github.com/users/sgrif/following{/other_user}","gists_url":"https://api.github.com/users/sgrif/gists{/gist_id}","starred_url":"https://api.github.com/users/sgrif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgrif/subscriptions","organizations_url":"https://api.github.com/users/sgrif/orgs","repos_url":"https://api.github.com/users/sgrif/repos","events_url":"https://api.github.com/users/sgrif/events{/privacy}","received_events_url":"https://api.github.com/users/sgrif/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2017-01-06T10:19:23Z","updated_at":"2017-01-07T08:34:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/27588","html_url":"https://github.com/rails/rails/pull/27588","diff_url":"https://github.com/rails/rails/pull/27588.diff","patch_url":"https://github.com/rails/rails/pull/27588.patch"},"body":"### Summary\r\n\r\nPostgreSQL JSONB columns do not preserve the key order of hashes\r\n\r\nhttps://www.postgresql.org/docs/9.6/static/datatype-json.html\r\n\r\nDue to this setting a JSONB column to the same hash twice can cause `model.changed?` to return false positives\r\n"},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/271070933","html_url":"https://github.com/rails/rails/pull/27588#issuecomment-271070933","issue_url":"https://api.github.com/repos/rails/rails/issues/27588","id":271070933,"user":{"login":"ianks","id":3303032,"avatar_url":"https://avatars.githubusercontent.com/u/3303032?v=3","gravatar_id":"","url":"https://api.github.com/users/ianks","html_url":"https://github.com/ianks","followers_url":"https://api.github.com/users/ianks/followers","following_url":"https://api.github.com/users/ianks/following{/other_user}","gists_url":"https://api.github.com/users/ianks/gists{/gist_id}","starred_url":"https://api.github.com/users/ianks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianks/subscriptions","organizations_url":"https://api.github.com/users/ianks/orgs","repos_url":"https://api.github.com/users/ianks/repos","events_url":"https://api.github.com/users/ianks/events{/privacy}","received_events_url":"https://api.github.com/users/ianks/received_events","type":"User","site_admin":false},"created_at":"2017-01-07T08:34:52Z","updated_at":"2017-01-07T08:34:52Z","body":"I'm confused @bradleypriest. The documentation states this:\r\n\r\n> Because the json type stores an exact copy of the input text, it will preserve semantically-insignificant white space between tokens, as well as the order of keys within JSON objects.\r\n\r\n"}}
{"actor":{"display_login":"ianks"}}