JsonCompare

Compares two Json strings

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

Syntax:

SELECT *
FROM SQLHTTP.net.JsonCompare( @Json1, @Json2 )

Arguments:

Name Type Description
@Json1 nvarchar(MAX) First Json String to be compared
@Json2 nvarchar(MAX) Second Json String to be compared

Return Type:

bit

Return Values:

0 = The two Json strings ARE NOT the same.
1 = The two Json strings ARE the same.

Sample Usage:

See Also: