public class JsonUtil {
public static boolean jsonEquals( String string1, String string2 ) {
if( string1 != null && string2 != null ) {
try {
JsonObject json1 = JsonObject.readFrom( new CommentsFilter( string1 ).toString() );
JsonObject json2 = JsonObject.readFrom( new CommentsFilter( string2 ).toString() );
return json1.equals( json2 );
} catch( Exception exception ) {
// ignore exceptions and return false
}
}