Marvin.JsonPatch
2.2.0
See the version list below for details.
dotnet add package Marvin.JsonPatch --version 2.2.0
NuGet\Install-Package Marvin.JsonPatch -Version 2.2.0
<PackageReference Include="Marvin.JsonPatch" Version="2.2.0" />
paket add Marvin.JsonPatch --version 2.2.0
#r "nuget: Marvin.JsonPatch, 2.2.0"
// Install Marvin.JsonPatch as a Cake Addin #addin nuget:?package=Marvin.JsonPatch&version=2.2.0 // Install Marvin.JsonPatch as a Cake Tool #tool nuget:?package=Marvin.JsonPatch&version=2.2.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.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net40 is compatible. net403 was computed. net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.0
- Newtonsoft.Json (>= 9.0.1)
-
.NETFramework 4.5
- Newtonsoft.Json (>= 9.0.1)
-
.NETStandard 2.0
- Newtonsoft.Json (>= 9.0.1)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on Marvin.JsonPatch:
Package | Downloads |
---|---|
Marvin.JsonPatch.Dynamic
Marvin.JsonPatch.Dynamic adds support for dynamically typed objects to Marvin.JsonPatch. Marvin.JsonPatch was built to work on staticly typed objects, which is great for most cases. Yet sometimes you'll want to create a patch document without having a static type to start from (for example: when integrating with a backend that's out of your control), or you'll want to apply a JsonPatchDocument to a dynamic object, or an object that has a property which isn't statically typed. That's what this component takes care of. It extends Marvin.JsonPatch with new methods on JsonPatchDocument, and it allows you to apply the JsonPatchDocument to dynamically typed objects. |
|
Swoogan.Resource
A client REST library for .NET with an API that models Angular's ngResource |
|
StreamData.Client
Streamdata.io official client |
|
JsonPatchGenerator.Marvin.JsonPatch
A library that allows to create a rfc6902-based JSON Patch Document from comparing two objects. |
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
|
Version | Downloads | Last updated |
---|---|---|
2.2.1 | 2,040,211 | 4/6/2022 |
2.2.1-rc | 1,385 | 3/29/2022 |
2.2.0 | 285,242 | 4/13/2021 |
2.1.1 | 414,645 | 5/22/2019 |
2.1.0 | 604,442 | 1/29/2018 |
2.0.0 | 40,243 | 11/20/2017 |
1.1.0 | 136,953 | 7/4/2017 |
1.0.0 | 520,371 | 9/5/2016 |
0.9.0 | 260,101 | 9/16/2015 |
0.7.0 | 21,440 | 3/2/2015 |
0.5.1 | 4,791 | 2/12/2015 |
0.3.0 | 8,972 | 12/17/2014 |
0.2.0 | 21,393 | 11/5/2014 |
Release adds multitarget support - supported are net40, net45 and netstandard2.0, meaning the package can now be used on most .NET Framework / .NET Core / .NET platforms.