public class JSONEscaper extends Object
Constructor and Description |
---|
JSONEscaper() |
Modifier and Type | Method and Description |
---|---|
static String |
escape(String jsonStringValue)
This will escape a value ready to go into a JSON string value.
|
public static String escape(String jsonStringValue)
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.
jsonStringValue
- JSON string valueCopyright © 2002-2016 Atlassian. All Rights Reserved.