Microsoft.AspNetCore.JsonPatch.SystemTextJson
                               
                            
                                10.0.0-rc.1.25451.107
                            
                        
                            
                                
                                
                                    Prefix Reserved
                                
                            
                    See the version list below for details.
dotnet add package Microsoft.AspNetCore.JsonPatch.SystemTextJson --version 10.0.0-rc.1.25451.107
NuGet\Install-Package Microsoft.AspNetCore.JsonPatch.SystemTextJson -Version 10.0.0-rc.1.25451.107
<PackageReference Include="Microsoft.AspNetCore.JsonPatch.SystemTextJson" Version="10.0.0-rc.1.25451.107" />
<PackageVersion Include="Microsoft.AspNetCore.JsonPatch.SystemTextJson" Version="10.0.0-rc.1.25451.107" />
<PackageReference Include="Microsoft.AspNetCore.JsonPatch.SystemTextJson" />
paket add Microsoft.AspNetCore.JsonPatch.SystemTextJson --version 10.0.0-rc.1.25451.107
#r "nuget: Microsoft.AspNetCore.JsonPatch.SystemTextJson, 10.0.0-rc.1.25451.107"
#:package Microsoft.AspNetCore.JsonPatch.SystemTextJson@10.0.0-rc.1.25451.107
#addin nuget:?package=Microsoft.AspNetCore.JsonPatch.SystemTextJson&version=10.0.0-rc.1.25451.107&prerelease
#tool nuget:?package=Microsoft.AspNetCore.JsonPatch.SystemTextJson&version=10.0.0-rc.1.25451.107&prerelease
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:
- Annotate it with the 
HttpPatchattribute - Accept a 
JsonPatchDocument<TModel> - Call 
ApplyToon the patch document to apply changes 
For example:
[HttpPatch]
public IActionResult JsonPatchWithModelState(
    [FromBody] JsonPatchDocument<Customer> 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 | Versions 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. | 
- 
                                                    
net10.0
- No dependencies.
 
 
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Microsoft.AspNetCore.JsonPatch.SystemTextJson:
| Repository | Stars | 
|---|---|
| 
                                                        
                                                            dotnet/AspNetCore.Docs
                                                        
                                                         
                                                            Documentation for ASP.NET Core
                                                         
                                                     | 
                                                    
| Version | Downloads | Last Updated | 
|---|---|---|
| 10.0.0-rc.2.25466.103 | 0 | 9/22/2025 | 
| 10.0.0-rc.1.25451.107 | 0 | 9/22/2025 | 
| 10.0.0-rc.1.25421.113 | 0 | 9/12/2025 | 
| 10.0.0-preview.7.25380.108 | 0 | 8/11/2025 | 
| 10.0.0-preview.7.25380.105 | 0 | 8/6/2025 | 
| 10.0.0-preview.6.25358.103 | 0 | 7/17/2025 | 
| 10.0.0-preview.6.25321.102 | 0 | 6/25/2025 | 
| 10.0.0-preview.5.25280.105 | 0 | 6/2/2025 | 
| 10.0.0-preview.5.25277.114 | 0 | 6/3/2025 | 
| 10.0.0-preview.5.25277.101 | 0 | 5/29/2025 | 
| 10.0.0-preview.4.25255.103 | 0 | 5/12/2025 |