RegexUnescape
Returns a Json un-escaped string
- Free Function
- SQL Server Compatibility: 2008, 2012, 2014, 2016, 2017
SELECT SQLHTTP.net.JsonUnescape ( @JsonValue )
Name | Type | Description |
---|---|---|
@JsonValue | nvarchar(MAX) | Json Value to un-escape. |
nvarchar(MAX)
Json un-escaping IS always identical to Regex un-escaping, but Json escaping is NOT always identical to Regex escaping.
1 2 3 4 5 6 7 |
DECLARE @JsonValue nvarchar(MAX) SET @JsonValue = '\"C:\\temp\"' SELECT SQLHTTP.net.JsonUnescape(@JsonValue) |
1 2 3 4 |
--------------- "C:\temp" |