Class TestJSONEscaper
java.lang.Object
com.atlassian.jira.functest.framework.util.json.TestJSONEscaper
Escape util for JSON data
- Since:
- v3.13
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TestJSONEscaper
public TestJSONEscaper()
-
-
Method Details
-
escape
This will escape a value ready to go into a JSON string value.NOTE : IT DOES NOT put the double quotes " around the string value and hence you can safely append the returned value to another JSON string value
This handles the use case where you are concattenating values that ultimately will be a JSON string value but you dont want double quotes around too early.
- Parameters:
jsonStringValue- JSON string value- Returns:
- an escaped JSON string value, returns empty string if the value is null
-