Package nonapi.io.github.classgraph.json
Class JSONUtils
java.lang.Object
nonapi.io.github.classgraph.json.JSONUtils
Utils for Java serialization and deserialization.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringescapeJSONString(String unsafeStr) Escape a string to be surrounded in double quotes in JSON.static booleanmakeAccessible(AccessibleObject obj, ReflectionUtils reflectionUtils)
-
Method Details
-
makeAccessible
-
escapeJSONString
Escape a string to be surrounded in double quotes in JSON.- Parameters:
unsafeStr- The string to escape.- Returns:
- The escaped string.
-