public class EscapeJson extends Object
| Constructor and Description |
|---|
EscapeJson() |
| Modifier and Type | Method and Description |
|---|---|
static String |
escape(String s)
Escape quotes, \, /, \r, \n, \b, \f, \t and characters (U+0000 through
U+001F).
|
static void |
escape(String value,
WriteJsonBuffer sb) |
static void |
escapeAppend(String s,
Appendable sb)
Escape quotes, \, /, \r, \n, \b, \f, \t and characters (U+0000 through
U+001F).
|
static String |
escapeQuote(String value)
Escape and quote the string value.
|
static void |
escapeQuote(String value,
WriteJsonBuffer sb) |
static String |
unescapeSlash(String value)
Unescape the JSON escaped slash character.
|
public static String unescapeSlash(String value)
public static String escape(String s)
public static void escape(String value, WriteJsonBuffer sb)
public static void escapeQuote(String value, WriteJsonBuffer sb)
public static void escapeAppend(String s, Appendable sb)
Copyright © 2014. All Rights Reserved.