Class EscapeJSON

java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.from_string.EscapeJSON
All Implemented Interfaces:
Function<String,String>

public class EscapeJSON extends Object implements Function<String,String>
Escape all special characters which are required to be escaped when found within JSON content according to the JSON spec

 \b  Backspace (ascii code 08)
 \f  Form feed (ascii code 0C)
 \n  New line
 \r  Carriage return
 \t  Tab
 \"  Double quote
 \\  Backslash character
 \/  Forward slash