setting restClient.JsonSerializer for json.net compatibility

1,321 views
Skip to first unread message

Frank Schwietermen

unread,
Jan 30, 2013, 9:03:42 PM1/30/13
to rest...@googlegroups.com
  I was updating a library that is using JSON.Net attributes in serialization.  Following the instructions here: https://github.com/restsharp/RestSharp/blob/master/readme.txt, I end up being stuck.  The problem is that the RestClient appears to no longer have a JsonSerializer property I can set.  It looks like I can set a RestRequest.JsonSeerializer.  Is there a way to assign the serializer on a per-client basis still?

thanks

Frank Schwietermen

unread,
Jan 30, 2013, 9:37:42 PM1/30/13
to rest...@googlegroups.com
  It looks like setting RestRequest.JsonSerializer was fine for me.  Sorry for all the noise.

Adam Fisher

unread,
Feb 3, 2016, 1:30:44 PM2/3/16
to RestSharp
If you want to keep using JSON.NET with RestSharp, you can easily integrate it with https://github.com/adamfisher/RestSharp.Newtonsoft.Json.
Reply all
Reply to author
Forward
0 new messages