{"action":"opened","issue":{"url":"https://api.github.com/repos/docker/docker/issues/20194","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/20194/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/20194/comments","events_url":"https://api.github.com/repos/docker/docker/issues/20194/events","html_url":"https://github.com/docker/docker/issues/20194","id":132742517,"number":20194,"title":"Remote API, 1.22 generates wrong JSON properties for /events","user":{"login":"megastef","id":7289505,"avatar_url":"https://avatars.githubusercontent.com/u/7289505?v=3","gravatar_id":"","url":"https://api.github.com/users/megastef","html_url":"https://github.com/megastef","followers_url":"https://api.github.com/users/megastef/followers","following_url":"https://api.github.com/users/megastef/following{/other_user}","gists_url":"https://api.github.com/users/megastef/gists{/gist_id}","starred_url":"https://api.github.com/users/megastef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/megastef/subscriptions","organizations_url":"https://api.github.com/users/megastef/orgs","repos_url":"https://api.github.com/users/megastef/repos","events_url":"https://api.github.com/users/megastef/events{/privacy}","received_events_url":"https://api.github.com/users/megastef/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-10T16:08:10Z","updated_at":"2016-02-10T16:08:10Z","closed_at":null,"body":"Hi, \r\n\r\nwhen I collect events from Docker API (server reports 1.22) I get e.g. this\r\n```\r\n{\r\n  \"Type\": \"network\",\r\n  \"Action\": \"connect\",\r\n  \"Actor\": {\r\n    \"ID\": \"085fea92eefc9b89d7bbb96e7c07b695c81fa3f5248c066088c5fa7e6ae026c3\",\r\n    \"Attributes\": {\r\n      \"container\": \"e83a12c3872f5d4415aaa5ba165cf30268fb229e20dae84686c212a8c05a6220\",\r\n      \"name\": \"bridge\",\r\n      \"type\": \"bridge\"\r\n    }\r\n  },\r\n  \"time\": 1455115964,\r\n  \"timeNano\": 1455115964417484500\r\n}\r\n```\r\n\r\nBut the documentation describes the JSON properties names in lower case:\r\nhttps://github.com/docker/docker/blob/master/docs/reference/api/docker_remote_api_v1.22.md#monitor-dockers-events\r\n\r\ne.g. \r\n```\r\n{\r\n    \"action\": \"create\",\r\n    \"type\": \"container\",\r\n    \"actor\": {\r\n        \"id\": \"5745704abe9caa5\",\r\n        \"attributes\": {\"image\": \"busybox\"}\r\n    }\r\n    \"time\": 1442421716,\r\n    \"timeNano\": 1442421716853979870\r\n    }\r\n```\r\n\r\n\r\n\r\n"}}