Skip to main content
Marvin.JsonPatch package icon

Marvin.JsonPatch

JSON Patch (https://tools.ietf.org/html/rfc6902) defines a JSON document structure for expressing a sequence of operations to apply to a JavaScript Object Notation (JSON) document; it is suitable for use with the HTTP PATCH method. The "application/json-patch+json" media type is used to identify such patch documents. One of the things this can be used for is partial updates for REST-ful API's, or, to quote the IETF: "This format is also potentially useful in other cases in which it is necessary to make partial updates to a JSON document or to a data structure that has similar constraints (i.e., they can be serialized as an object or an array using the JSON grammar)." That's what this package is all about. Web API supports the HttpPatch method, but there's currently no implementation of the JsonPatchDocument in .NET, making it hard to pass in a set of changes that have to be applied - especially if you're working cross-platform and standardization of your API is essential. Have a look at the project site for the current status of this package and to learn how to get started.

Total Downloads
10.4M
10,426,290
Published
Apr 6, 2022
Latest stable version

Install

.NET CLI
dotnet add package Marvin.JsonPatch --version 2.2.1
Package Manager Console
Install-Package Marvin.JsonPatch -Version 2.2.1
PackageReference
<PackageReference Include="Marvin.JsonPatch" Version="2.2.1" />

Frameworks

.NETFramework4.0 .NETFramework4.5 .NETStandard2.0

Dependencies

Newtonsoft.Json
.NETFramework4.0
[9.0.1, )
Newtonsoft.Json
.NETFramework4.5
[9.0.1, )
Newtonsoft.Json
.NETStandard2.0
[9.0.1, )

Adoption guide

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.

Compatibility metadata lists 3 target frameworks; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.