Escapes a JSON string by replacing notations with escape characters.
| Character | Replace With |
|---|---|
| NewLine | \n |
| Single quote | \' |
| Horizontal Tab | \t |
| Backslash | \\ |
| Vertical Tab | \v |
| Backspace | \b |
| Form feed | \f |
| Double quote | \" |
{
"name": "Foo",
"age": "25",
"gender": "M"
}{\n \"name\": \"Foo\",\n \"age\": \"25\",\n \"gender\": \"M\"\n }