In this post, I am going to explain how to generate a json document that represents the difference between two json documents.
How to represent the difference between two json documents?
There are two standard formats that can be used to represent the difference between two json documents.
a. JSON Patch
b. JSON merge patch
I am using following dependencies for this tutorial.
<dependencies>
<!-- https://mvnrepository.com/artifact/com.google.code.gson/gson -->
<dependency>
<groupId>javax.json</groupId>
<artifactId>javax.json-api</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.json</artifactId>
<version>1.1.4</version>
</dependency>
</dependencies>
Previous Next Home
No comments:
Post a Comment