EscapeJson Function

  • Updated

The EscapeJson function replaces invalid JSON characters (backspace, form feed, newline, carriage return, tab, double quote, and backslash) in a string with their valid equivalent.

Syntax

 

The EscapeJson function replaces invalid JSON characters (backspace, form feed, newline, carriage return, tab, double quote, and backslash) in a string with their valid equivalent.

 

EscapeJson(string)

 

 

Arguments:

 

 

 

string

String - The string to convert.

Remarks

  • Example: EscapeJson("Be careful when using a backslash(\) or a quote(").") returns "Be careful when using a backslash(\\) or a quote(\").".

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.