Class JSONUtils

java.lang.Object
nonapi.io.github.classgraph.json.JSONUtils

public final class JSONUtils extends Object
Utils for Java serialization and deserialization.
  • Method Details

    • makeAccessible

      public static boolean makeAccessible(AccessibleObject obj, ReflectionUtils reflectionUtils)
    • escapeJSONString

      public static String escapeJSONString(String unsafeStr)
      Escape a string to be surrounded in double quotes in JSON.
      Parameters:
      unsafeStr - The string to escape.
      Returns:
      The escaped string.