Design a Java program that compares if two JSON Objects areequal. You must use the sample code and implement least oneof the following: method(s) with recursion, lists, stack.A sample code is provided for assistance.
Sample Code (copyable):
/*
* This is a simple ccanner that breaks up the text into JSONtokens.
* The scanner provides teo constructors and two methods:
* JSONScanner( String s ) : takes a String and creates a stream oftokens
* JSONScanner( InputStream is ) : takes an InputStream object, suchas
* System.in and creates a stream of tokens
* String next() : returns next token in the stream
* String hasNext() : returns true
PayPal Gateway not configured
PayPal Gateway not configured