Xml_To_Json

Converts an XML to a JSON string

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

Syntax:

SELECT SQLHTTP.net.XML_To_Json ( @Xml )

Arguments:

Name Type Description
@Xml xml An XML value to be converted to a JSON string

Return Type:

nvarchar(MAX)

Sample Usage:

See Also: