Package uk.gov.gchq.gaffer.commonutil
Class JsonUtil
- java.lang.Object
-
- uk.gov.gchq.gaffer.commonutil.JsonUtil
-
public final class JsonUtil extends Object
Utility methods for various JSON representations in Gaffer.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
equals(byte[] expectedJson, byte[] actualJson)
Test to see whether two JSON byte array representations are equal.static boolean
equals(String expectedJson, String actualJson)
Test to see whether two JSONString
representations are equal.
-
-
-
Method Detail
-
equals
public static boolean equals(String expectedJson, String actualJson)
Test to see whether two JSONString
representations are equal.- Parameters:
expectedJson
- the expected JSON stringactualJson
- 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 arrayactualJson
- the actual JSON byte array- Returns:
- true if both strings are equal, otherwise false
-
-