Marvin.JsonPatch
0.7.0
dotnet add package Marvin.JsonPatch --version 0.7.0
NuGet\Install-Package Marvin.JsonPatch -Version 0.7.0
<PackageReference Include="Marvin.JsonPatch" Version="0.7.0" />
paket add Marvin.JsonPatch --version 0.7.0
#r "nuget: Marvin.JsonPatch, 0.7.0"
// Install Marvin.JsonPatch as a Cake Addin #addin nuget:?package=Marvin.JsonPatch&version=0.7.0 // Install Marvin.JsonPatch as a Cake Tool #tool nuget:?package=Marvin.JsonPatch&version=0.7.0
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.
Learn more about Target Frameworks and .NET Standard.
-
- Newtonsoft.Json (>= 6.0.4)
GitHub repositories (3)
Showing the top 3 popular GitHub repositories that depend on Marvin.JsonPatch:
Repository | Stars |
---|---|
ONLYOFFICE/CommunityServer
Free open source office suite with business productivity tools: document and project management, CRM, mail aggregator.
|
|
shr670377723/CommunityServer-master
|
|
Havunen/SystemTextJsonPatch
SystemTextJsonPatch is a JSON Patch (JsonPatchDocument) RFC 6902 implementation for .NET using System.Text.Json
|
- support for non-IConvertible types
- greatly improved performance
- avoid unnecessary reflection where possible
- stability improvements