{"action":"created","issue":{"url":"https://api.github.com/repos/gorilla/rpc/issues/28","labels_url":"https://api.github.com/repos/gorilla/rpc/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/gorilla/rpc/issues/28/comments","events_url":"https://api.github.com/repos/gorilla/rpc/issues/28/events","html_url":"https://github.com/gorilla/rpc/issues/28","id":63559516,"number":28,"title":"json2.DecodeClientResponse panic if result is null","user":{"login":"sosedoff","id":71051,"avatar_url":"https://avatars.githubusercontent.com/u/71051?v=3","gravatar_id":"","url":"https://api.github.com/users/sosedoff","html_url":"https://github.com/sosedoff","followers_url":"https://api.github.com/users/sosedoff/followers","following_url":"https://api.github.com/users/sosedoff/following{/other_user}","gists_url":"https://api.github.com/users/sosedoff/gists{/gist_id}","starred_url":"https://api.github.com/users/sosedoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sosedoff/subscriptions","organizations_url":"https://api.github.com/users/sosedoff/orgs","repos_url":"https://api.github.com/users/sosedoff/repos","events_url":"https://api.github.com/users/sosedoff/events{/privacy}","received_events_url":"https://api.github.com/users/sosedoff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-03-22T18:07:06Z","updated_at":"2015-03-23T14:16:51Z","closed_at":null,"body":"Method panics with invalid memory address when `result` attribute of RPC response is set to `null`.\r\n\r\nExample data:\r\n\r\n```json\r\n{\"jsonrpc\": \"2.0\", \"id\": 8674665223082153551, \"result\": null}\r\n```\r\n\r\nExample code:\r\n\r\n```go\r\npackage main\r\n\r\nimport (\r\n\t\"bytes\"\r\n\t\"fmt\"\r\n\r\n\trpc \"github.com/gorilla/rpc/v2/json2\"\r\n)\r\n\r\nfunc main() {\r\n\tdata := `{\"jsonrpc\": \"2.0\", \"id\": 8674665223082153551, \"result\": null}`\r\n\treader := bytes.NewReader([]byte(data))\r\n\r\n\tvar reply interface{}\r\n\r\n\terr := rpc.DecodeClientResponse(reader, &reply)\r\n\tif err != nil {\r\n\t\tfmt.Println(err)\r\n\t\treturn\r\n\t}\r\n\r\n\tfmt.Println(reply)\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/gorilla/rpc/issues/comments/85017017","html_url":"https://github.com/gorilla/rpc/issues/28#issuecomment-85017017","issue_url":"https://api.github.com/repos/gorilla/rpc/issues/28","id":85017017,"user":{"login":"sosedoff","id":71051,"avatar_url":"https://avatars.githubusercontent.com/u/71051?v=3","gravatar_id":"","url":"https://api.github.com/users/sosedoff","html_url":"https://github.com/sosedoff","followers_url":"https://api.github.com/users/sosedoff/followers","following_url":"https://api.github.com/users/sosedoff/following{/other_user}","gists_url":"https://api.github.com/users/sosedoff/gists{/gist_id}","starred_url":"https://api.github.com/users/sosedoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sosedoff/subscriptions","organizations_url":"https://api.github.com/users/sosedoff/orgs","repos_url":"https://api.github.com/users/sosedoff/repos","events_url":"https://api.github.com/users/sosedoff/events{/privacy}","received_events_url":"https://api.github.com/users/sosedoff/received_events","type":"User","site_admin":false},"created_at":"2015-03-23T14:16:51Z","updated_at":"2015-03-23T14:16:51Z","body":"Done, see #30 "}}