You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,15 @@
1
-
# This is an implementation of [RFC 6902 JSON Patch](http://tools.ietf.org/html/rfc6902) written in Java.
1
+
# This is an implementation of [RFC 6902 JSON Patch](https://datatracker.ietf.org/doc/html/rfc6902) written in Java.
2
2
3
3
This [JSON Patch](http://jsonpatch.com) implementation works directly with [BSON documents](http://bsonspec.org/) using the [MongoDB Java driver implementation of BSON](https://www.mongodb.com/json-and-bson).
4
4
5
5
The code here was ported (copied, renamed, repackaged, modified) from the [zjsonpatch project](https://github.com/flipkart-incubator/zjsonpatch).
6
6
7
7
## Description & Use-Cases
8
-
- Java Library to find / apply JSON Patches according to [RFC 6902](http://tools.ietf.org/html/rfc6902).
8
+
- Java Library to find / apply JSON Patches according to [RFC 6902](https://datatracker.ietf.org/doc/html/rfc6902).
9
9
- JSON Patch defines a JSON document structure for representing changes to a JSON document.
10
10
- It can be used to avoid sending a whole document when only a part has changed, thus reducing network bandwidth requirements if data (in JSON format) is required to send across multiple systems over network or in case of multi DC transfer.
11
-
- This library compares two [BsonValue](http://mongodb.github.io/mongo-java-driver/3.6/javadoc/org/bson/BsonValue.html) inputs and produces a [BsonArray](http://mongodb.github.io/mongo-java-driver/3.6/javadoc/org/bson/BsonArray.html) of the changes.
11
+
- When used in combination with the HTTP PATCH method as per [RFC 5789 HTTP PATCH](https://datatracker.ietf.org/doc/html/rfc5789), it will do partial updates for HTTP APIs in a standard way.
12
+
- This library compares two [BsonValue](https://mongodb.github.io/mongo-java-driver/3.12/javadoc/org/bson/BsonValue.html) inputs and produces a [BsonArray](https://mongodb.github.io/mongo-java-driver/3.12/javadoc/org/bson/BsonArray.html) of the changes.
12
13
13
14
14
15
### Compatible with : Java 8 and above all versions
@@ -20,15 +21,15 @@ The code here was ported (copied, renamed, repackaged, modified) from the [zjson
20
21
21
22
### How to use:
22
23
23
-
### Current Version : 0.4.9
24
+
### Current Version : 0.4.12
24
25
25
26
Add following to `<dependencies/>` section of your pom.xml -
26
27
27
28
```xml
28
29
<dependency>
29
30
<groupId>com.ebay.bsonpatch</groupId>
30
31
<artifactId>bsonpatch</artifactId>
31
-
<version>0.4.9</version>
32
+
<version>0.4.12</version>
32
33
</dependency>
33
34
```
34
35
@@ -42,7 +43,7 @@ Computes and returns a JSON `patch` (as a BsonArray) from `source` to `target`,
42
43
Both `source` and `target` must be either valid BSON objects or arrays or values.
43
44
Further, if resultant `patch` is applied to `source`, it will yield `target`.
44
45
45
-
The algorithm which computes this JsonPatch currently generates following operations as per [RFC 6902](https://tools.ietf.org/html/rfc6902) -
46
+
The algorithm which computes this JsonPatch currently generates following operations as per [RFC 6902](https://datatracker.ietf.org/doc/html/rfc6902#section-4) -
0 commit comments