Microsoft.AspNetCore.JsonPatch.SystemTextJson 10.0.12

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Microsoft.AspNetCore.JsonPatch.SystemTextJson --version 10.0.12
                    
NuGet\Install-Package Microsoft.AspNetCore.JsonPatch.SystemTextJson -Version 10.0.12
                    
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.

                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.

                    
Directory.Packages.props

                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Microsoft.AspNetCore.JsonPatch.SystemTextJson --version 10.0.12
                    
#r "nuget: Microsoft.AspNetCore.JsonPatch.SystemTextJson, 10.0.12"
                    
#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.
#:package Microsoft.AspNetCore.JsonPatch.SystemTextJson@10.0.12
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Microsoft.AspNetCore.JsonPatch.SystemTextJson&version=10.0.12
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.AspNetCore.JsonPatch.SystemTextJson&version=10.0.12
                    
Install as a Cake Tool

About

Microsoft.AspNetCore.JsonPatch.SystemTextJson provides ASP.NET Core support for JSON PATCH requests.

How to Use

To use Microsoft.AspNetCore.JsonPatch.SystemTextJson, follow these steps:

Installation

dotnet add package Microsoft.AspNetCore.JsonPatch.SystemTextJson

Usage

To define an action method for a JSON Patch in an API controller:

  1. Annotate it with the HttpPatch attribute
  2. Accept a JsonPatchDocument
  3. Call ApplyTo on the patch document to apply changes

For example:

[HttpPatch]
public IActionResult JsonPatchWithModelState(
    [FromBody] JsonPatchDocument patchDoc)
{
    if (patchDoc is not null)
    {
        var customer = CreateCustomer();

        patchDoc.ApplyTo(customer, ModelState);

        if (!ModelState.IsValid)
        {
            return BadRequest(ModelState);
        }

        return new ObjectResult(customer);
    }
    else
    {
        return BadRequest(ModelState);
    }
}

In a real app, the code would retrieve the data from a store such as a database and update the database after applying the patch.

Additional Documentation

For additional documentation and examples, refer to the official documentation on JSON Patch in ASP.NET Core.

Feedback & Contributing

Microsoft.AspNetCore.JsonPatch.SystemTextJson is released as open-source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (9)

Showing the top 5 NuGet packages that depend on Microsoft.AspNetCore.JsonPatch.SystemTextJson:

Package Downloads
Elvia.Ifs.Extensions.Api.Client.Abstractions

Abstractions that is used by the ifs-extensions API.

SurrealDb.Net

The official SurrealDB library for .NET

SFA.DAS.Api.Common

Package Description

SurrealDb.Embedded.InMemory

In-memory provider for the SurrealDB library for .NET

SurrealDb.Embedded.RocksDb

File provider for the SurrealDB library for .NET, backed by RocksDB

GitHub repositories (7)

Showing the top 7 popular GitHub repositories that depend on Microsoft.AspNetCore.JsonPatch.SystemTextJson:

Repository Stars
dotnet/AspNetCore.Docs
Documentation for ASP.NET Core
FastEndpoints/FastEndpoints
A light-weight REST API development framework for ASP.NET 8 and newer.
grandnode/grandnode2
Open-source e-commerce platform for .NET 10 and MongoDB: multi-store, multi-vendor marketplace, B2B/B2C, headless REST API, Vue 3 storefront, Docker.
Jitendex/Jitendex
A free, offline, and openly licensed Japanese-to-English dictionary. Updates monthly!
dotnet/AspNetCore.Docs.Samples
markjprice/cs14net10
Repository for the Packt Publishing book titled "C# 14 and .NET 10 - Modern Cross-Platform Development Fundamentals" by Mark J. Price
surrealdb/surrealdb.net
SurrealDB SDK for .NET
Version Downloads Last Updated
11.0.0-rc.1.26425.128 1,093 9/8/2026
11.0.0-preview.7.26381.103 848 8/11/2026
11.0.0-preview.6.26359.118 128 7/14/2026
11.0.0-preview.5.26302.115 243 6/9/2026
11.0.0-preview.4.26230.115 113 5/12/2026
11.0.0-preview.3.26207.106 100 4/14/2026
11.0.0-preview.2.26159.112 123 3/10/2026
11.0.0-preview.1.26104.118 165 2/10/2026
10.0.12 36,242 9/8/2026
10.0.11 65,403 8/11/2026
10.0.10 73,089 7/14/2026
10.0.9 78,481 6/9/2026
10.0.8 74,118 5/12/2026
10.0.7 100,480 4/21/2026
10.0.6 30,511 4/14/2026
10.0.5 163,618 3/12/2026
10.0.4 6,672 3/10/2026
10.0.3 31,128 2/10/2026
10.0.2 71,023 1/13/2026
10.0.1 55,975 12/9/2025
Loading failed