Adv76.JsonMergePatch 0.0.2

dotnet add package Adv76.JsonMergePatch --version 0.0.2
                    
NuGet\Install-Package Adv76.JsonMergePatch -Version 0.0.2
                    
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="Adv76.JsonMergePatch" Version="0.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Adv76.JsonMergePatch" Version="0.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Adv76.JsonMergePatch" />
                    
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 Adv76.JsonMergePatch --version 0.0.2
                    
#r "nuget: Adv76.JsonMergePatch, 0.0.2"
                    
#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 Adv76.JsonMergePatch@0.0.2
                    
#: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=Adv76.JsonMergePatch&version=0.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Adv76.JsonMergePatch&version=0.0.2
                    
Install as a Cake Tool

Adv76.JsonMergePatch

A library for patching .NET objects via JSON Merge Patch

Suppose you have Class1 below:

public class Class1
{
    public int Int0 { get; set; }
    public string? String0 { get; set; }
    public double Double0 { get; set; }
}

And suppose you have this instance:

var obj = new Class1()
{
    Int0 = 1,
    String0 = "Hello World",
    Double0 = 3.5,
};

A simple example of patching this object:

var result = JsonMergePatcher.SafeApplyTo(ref obj, """
{
    "Int0": 42,
    "String0": "Sphinx of black quartz, judge my vow."
}
""");

If the patch succeeded, result.Succeeded will equal true and obj will have the "Int0" and "String0" properties updated to the corresponding values.

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

Showing the top 1 NuGet packages that depend on Adv76.JsonMergePatch:

Package Downloads
Adv76.AspNetCore.JsonMergePatch

JsonMergePatch integration for ASP.NET Core.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.2 120 9/10/2026
0.0.1 113 9/5/2026