Class JsonUtils


  • public final class JsonUtils
    extends Object
    • Constructor Detail

      • JsonUtils

        public JsonUtils()
    • Method Detail

      • jsonStringify

        public static String jsonStringify​(Object obj)
        Serialize given object as JSON string.
        Parameters:
        obj - The object to serialize.
        Returns:
        JSON string representation.
      • lenientEqual

        public static boolean lenientEqual​(Object read1,
                                           Object read2,
                                           Boolean leftContains)
        Json lenient comparison
        Parameters:
        read1 - Result of a json document read
        read2 - Result of another json document read
        leftContains - is read1 lenient contains read2 ?
        Returns:
        The result of the comparison as boolean