You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
1.0 KiB

1 year ago
  1. *** IMPORTANT CHANGE IN RESTSHARP VERSION 103 ***
  2. In 103.0, JSON.NET was removed as a dependency.
  3. If this is still installed in your project and no other libraries depend on
  4. it you may remove it from your installed packages.
  5. There is one breaking change: the default Json*Serializer* is no longer
  6. compatible with Json.NET. To use Json.NET for serialization, copy the code
  7. from https://github.com/restsharp/RestSharp/blob/86b31f9adf049d7fb821de8279154f41a17b36f7/RestSharp/Serializers/JsonSerializer.cs
  8. and register it with your client:
  9. var client = new RestClient();
  10. client.JsonSerializer = new YourCustomSerializer();
  11. The default Json*Deserializer* is mostly compatible, but it does not support
  12. all features which Json.NET has (like the ability to support a custom [JsonConverter]
  13. by decorating a certain property with an attribute). If you need these features, you
  14. must take care of the deserialization yourself to get it working.
  15. If you run into any compatibility issues with deserialization,
  16. please report it to http://groups.google.com/group/restsharp