public class JsonUtils extends Object
Constructor and Description |
---|
JsonUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
escape(String src)
Escapes a string, replacing quotes, backslashes, non-printable and
non-ASCII characters by a defined set of single-character or 4-digit
unicode escapes.
|
static String |
unescape(String src)
Unescapes a string, replacing "slash-sequences" by actual characters.
|
public static String escape(String src)
public static String unescape(String src)
IllegalArgumentException
- on any failure