Class JsonUtil


  • public final class JsonUtil
    extends Object
    Utility methods for various JSON representations in Gaffer.
    • Method Detail

      • equals

        public static boolean equals​(String expectedJson,
                                     String actualJson)
        Test to see whether two JSON String representations are equal.
        Parameters:
        expectedJson - the expected JSON string
        actualJson - the actual JSON string
        Returns:
        true if both strings are equal, otherwise false
      • equals

        public static boolean equals​(byte[] expectedJson,
                                     byte[] actualJson)
        Test to see whether two JSON byte array representations are equal.
        Parameters:
        expectedJson - the expected JSON byte array
        actualJson - the actual JSON byte array
        Returns:
        true if both strings are equal, otherwise false