{"action":"created","issue":{"url":"https://api.github.com/repos/restsharp/RestSharp/issues/886","repository_url":"https://api.github.com/repos/restsharp/RestSharp","labels_url":"https://api.github.com/repos/restsharp/RestSharp/issues/886/labels{/name}","comments_url":"https://api.github.com/repos/restsharp/RestSharp/issues/886/comments","events_url":"https://api.github.com/repos/restsharp/RestSharp/issues/886/events","html_url":"https://github.com/restsharp/RestSharp/issues/886","id":181377884,"number":886,"title":"Bug in readme.txt that shows after installing package","user":{"login":"Misiu","id":1741838,"avatar_url":"https://avatars.githubusercontent.com/u/1741838?v=3","gravatar_id":"","url":"https://api.github.com/users/Misiu","html_url":"https://github.com/Misiu","followers_url":"https://api.github.com/users/Misiu/followers","following_url":"https://api.github.com/users/Misiu/following{/other_user}","gists_url":"https://api.github.com/users/Misiu/gists{/gist_id}","starred_url":"https://api.github.com/users/Misiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Misiu/subscriptions","organizations_url":"https://api.github.com/users/Misiu/orgs","repos_url":"https://api.github.com/users/Misiu/repos","events_url":"https://api.github.com/users/Misiu/events{/privacy}","received_events_url":"https://api.github.com/users/Misiu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-06T10:25:00Z","updated_at":"2016-10-06T21:21:33Z","closed_at":null,"body":"Inside readme.txt that is shown when we install ReshSharp package we see how to enable Newtonsoft.JSON serializer:\r\n```C#\r\nvar client = new RestClient();\r\nclient.JsonSerializer = new YourCustomSerializer();\r\n```\r\nbut `RestClient` doesn't have `JsonSerializer` property.\r\nThis should be changed to:\r\n\r\n```C#\r\nvar request = new RestRequest();\r\nrequest.JsonSerializer =  new YourCustomSerializer();\r\n```\r\n\r\nAlso this allows us to specify serializer for each request. Is there an option to specify default serializer for RestClient?\r\nIdeally this should be a property of RestClient as shown in readme.txt, so instead fixing readme.txt just add that property to `RestClient`."},"comment":{"url":"https://api.github.com/repos/restsharp/RestSharp/issues/comments/252092460","html_url":"https://github.com/restsharp/RestSharp/issues/886#issuecomment-252092460","issue_url":"https://api.github.com/repos/restsharp/RestSharp/issues/886","id":252092460,"user":{"login":"behoyh","id":2565745,"avatar_url":"https://avatars.githubusercontent.com/u/2565745?v=3","gravatar_id":"","url":"https://api.github.com/users/behoyh","html_url":"https://github.com/behoyh","followers_url":"https://api.github.com/users/behoyh/followers","following_url":"https://api.github.com/users/behoyh/following{/other_user}","gists_url":"https://api.github.com/users/behoyh/gists{/gist_id}","starred_url":"https://api.github.com/users/behoyh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/behoyh/subscriptions","organizations_url":"https://api.github.com/users/behoyh/orgs","repos_url":"https://api.github.com/users/behoyh/repos","events_url":"https://api.github.com/users/behoyh/events{/privacy}","received_events_url":"https://api.github.com/users/behoyh/received_events","type":"User","site_admin":false},"created_at":"2016-10-06T21:21:33Z","updated_at":"2016-10-06T21:21:33Z","body":"The default is JsonDeserializer - after you call client.Execute(request); You can't change this default."}}
{"actor":{"display_login":"behoyh"}}