SystemTextJsonPatch 0.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package SystemTextJsonPatch --version 0.0.3
NuGet\Install-Package SystemTextJsonPatch -Version 0.0.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SystemTextJsonPatch" Version="0.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SystemTextJsonPatch --version 0.0.3
#r "nuget: SystemTextJsonPatch, 0.0.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SystemTextJsonPatch as a Cake Addin
#addin nuget:?package=SystemTextJsonPatch&version=0.0.3

// Install SystemTextJsonPatch as a Cake Tool
#tool nuget:?package=SystemTextJsonPatch&version=0.0.3

SystemTextJsonPatchLogo

SystemTextJsonPatch

SystemTextJsonPatch is a JSON Patch (JsonPatchDocument) RFC 6902 implementation for .NET using System.Text.Json

This library tries to ease the migration from Newtonsoft.Json to System.Text.Json by providing similar API for HttpPatch requests as in Microsoft.AspNetCore.JsonPatch and Marvin.JsonPatch

  • Designed as an easy replacement for Microsoft.AspNetCore.JsonPatch
  • Supports .NET 6.0+

Getting started

To enable JsonPatchDocument serialization support add SystemTextJsonPatch.Converters.JsonPatchDocumentConverterFactory to System.Text.Json serialization options converters. This is typically done in startup.cs file when configuring Asp.Net core MVC settings


public void ConfigureServices(IServiceCollection services)
{
    services
        .AddControllers()
        .AddJsonOptions((options) =>
        {
            options.JsonSerializerOptions.Converters.Add(new SystemTextJsonPatch.Converters.JsonPatchDocumentConverterFactory());
        });
}

or when using System.Text.Json.JsonSerializer directly with custom settings.

    var jsonOptions = new JsonSerializerOptions()
    {
        Converters =
        {
            new SystemTextJsonPatch.Converters.JsonPatchDocumentConverterFactory()
        }
    };

    var json = System.Text.Json.JsonSerializer.JsonSerializer.Serialize(incomingOperations, jsonOptions);
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on SystemTextJsonPatch:

Package Downloads
MediatR.CommandQuery

CQRS framework based on MediatR

Delobytes.AspNetCore.Swagger

Middlewares, MVC filters, extension methods and helper code for ASP.NET Core projects with Swagger (OpenAPI).

SurrealDb.Net

The official SurrealDB library for .NET

SystemTextJsonPatch.AspNet

SystemTextJsonPatch.AspNet contains JsonOptions extensions for ASP.NET Core

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on SystemTextJsonPatch:

Repository Stars
Azure/Bridge-To-Kubernetes
Bridge To Kubernetes (B2K) is development tool to debug microservices, pods which redirects traffic to your local development machine and vice versa.
Version Downloads Last updated
3.1.0 47,037 11/14/2023
3.0.1 46,757 8/21/2023
3.0.0 771 8/14/2023
2.0.2 16,130 7/16/2023
2.0.1 17,239 3/21/2023
2.0.0 244 3/21/2023
1.2.0 27,161 2/5/2023
1.1.0 7,110 1/18/2023
1.0.0 40,099 10/2/2022
0.0.9 7,166 9/11/2022
0.0.8 3,782 8/11/2022
0.0.7 2,857 6/17/2022
0.0.6 431 6/17/2022
0.0.5 2,265 5/24/2022
0.0.4 446 5/24/2022
0.0.3 443 5/23/2022
0.0.2 452 5/23/2022
0.0.1 798 5/19/2022