com.atlassian.confluence.json.json
Class JsonEscapeUtils
java.lang.Object
com.atlassian.confluence.json.json.JsonEscapeUtils
public class JsonEscapeUtils
- extends Object
- Since:
- v5.4
Method Summary |
static String |
quote(String string)
Produce a string in double quotes with backslash sequences in all the
right places. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonEscapeUtils
public JsonEscapeUtils()
quote
public static String quote(String string)
- Produce a string in double quotes with backslash sequences in all the
right places. A backslash will be inserted within , allowing JSON
text to be delivered in HTML. In JSON text, a string cannot contain a
control character or an unescaped quote or backslash.
- Parameters:
string
- A String
- Returns:
- A String correctly formatted for insertion in a JSON text.
Copyright © 2003–2015 Atlassian. All rights reserved.