FormatJson

Formats a JSON string to make it nice and readable

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

Syntax:

SELECT SQLHTTP.net.JsonFormat( @Json )

Arguments:

Name Type Description
@Json nvarchar(MAX) Json string

Return Type:

nvarchar(MAX)

Sample Usage:

See Also: