NodeTable_To_Json

Constructs a JSON string from tabular data

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

Syntax:

SELECT SQLHTTP.net.NodeTable_To_Json()

Arguments:

This procedure requires the SQLHTTP.net.NodeTable to be populated which is normally populated via the Json_To_NodeTable stored procedure.

Return Type:

nvarchar(MAX)

Remarks:

As shown in the example below, a JSON Object is “An object is an unordered set of name/value pairs”

Sample Usage:

This example demonstartes utizling the NodeTable for an Json update where “John” is replaced with “Jonathan”:

See Also: