Skip to main content
.NETFramework4.7.1.NETFramework4.8net6.0net7.0net8.0.NETStandard2.0

Simple REST and HTTP API Client

Published
Aug 29, 2024
2y ago
Total Downloads
38.9M
38,899,824

Install

dotnet add package RestSharp.Serializers.NewtonsoftJson --version 111.4.2-alpha.0.3
ProductVersions
.NET
net6.0net7.0net8.0
.NET Standard
netstandard2.0
Other
.NETFramework4.7.1.NETFramework4.8

README

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()
);

Changes from Previous Version

No structural changes between v111.4.1 and v111.4.2-alpha.0.3.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 6 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.