JsonEscape

Returns a JSON escaped string

  • Free Function
  • SQL Server Compatibility: 2008, 2012, 2014, 2016, 2017

Syntax:

SELECT SQLHTTP.net.JsonEscape ( @JsonValue )

Arguments:

Name Type Description
@JsonValue nvarchar(MAX) Json value to escape

Return Type:

nvarchar(MAX)

Remarks:

Json escaping is NOT always identical to Regex escaping, but Json un-escaping IS always identical to Regex un-escaping.

Sample Usage:

See Also: