File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,15 @@ it you may remove it from your installed packages.
8
8
There is one breaking change: the default Json*Serializer* is no longer
9
9
compatible with Json.NET. To use Json.NET for serialization, copy the code
10
10
from https://github.com/restsharp/RestSharp/blob/86b31f9adf049d7fb821de8279154f41a17b36f7/RestSharp/Serializers/JsonSerializer.cs
11
- and register it with your client :
11
+ and register it with your request :
12
12
13
- var client = new RestClient();
14
- client.JsonSerializer = new YourCustomSerializer();
13
+ var request = new RestRequest();
14
+ request.JsonSerializer = new Shared.JsonSerializer();
15
+
16
+ then you can use it in a client:
17
+
18
+ var client = new RestClient();
19
+ client.Post(request);
15
20
16
21
The default Json*Deserializer* is mostly compatible, but it does not support
17
22
all features which Json.NET has (like the ability to support a custom [JsonConverter]
You can’t perform that action at this time.
0 commit comments