Skip to content

Instantly share code, notes, and snippets.

Avatar

Nirup Murali Nirupg63

  • Chennai, India
View GitHub Profile
@Nirupg63
Nirupg63 / Main.java
Last active May 7, 2018
Simple java implementation that checks if two JSON Objects are equal and returns the inequal data as a JSON message.
View Main.java
import org.json.JSONObject;
import java.util.HashMap;
import java.util.Map;
public class Main {
public static void main(String[] args) {
// write your code here
String sample1 = "{\"a\":\"test\",\"b\":\"test\",\"msg\":{\"data1\":\"valid\",\"data2\":\"valid\",\"data3\":\"valid\",\"data4\":\"valid\"}}";