Class JsonEscapeUtils
java.lang.Object
com.atlassian.confluence.json.json.JsonEscapeUtils
- Since:
- 5.4
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JsonEscapeUtils
public JsonEscapeUtils()
-
-
Method Details
-
quote
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.
-