RestSharp.Serializers.NewtonsoftJson 112.1.1-alpha.0.4
About
This library allows using Newtonsoft.Json as a serializer for RestSharp instead of the default JSON serializer based
on System.Text.Json
.
How to use
The default JSON serializer uses System.Text.Json
, which is a part of .NET since .NET 6.
If you want to use Newtonsoft.Json, you can install the RestSharp.Serializers.NewtonsoftJson
package and configure
the
client to use it:
var client = new RestClient(
options,
configureSerialization: s => s.UseNewtonsoftJson()
);
No packages depend on RestSharp.Serializers.NewtonsoftJson.
.NET Framework 4.7.1
- RestSharp (>= 112.1.1-alpha.0.4)
- Newtonsoft.Json (>= 13.0.3)
.NET Framework 4.8
- RestSharp (>= 112.1.1-alpha.0.4)
- Newtonsoft.Json (>= 13.0.3)
.NET 8.0
- RestSharp (>= 112.1.1-alpha.0.4)
- Newtonsoft.Json (>= 13.0.3)
.NET 9.0
- RestSharp (>= 112.1.1-alpha.0.4)
- Newtonsoft.Json (>= 13.0.3)
.NET Standard 2.0
- RestSharp (>= 112.1.1-alpha.0.4)
- Newtonsoft.Json (>= 13.0.3)