public class StringEscapeUtils
extends java.lang.Object
| Constructor and Description |
|---|
StringEscapeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
escapeJson(java.lang.String string)
Modified from the quote method in:
https://github.com/codehaus/jettison/blob/master/src/main/java/org/codehaus/jettison/json/JSONObject.java
|
public static java.lang.String escapeJson(@Nullable java.lang.String string)
string - The string to escape.