Injecting JSON objects into existing JSON text with JSON_MODIFY function

added by DotNetKicks
12/22/2017 4:59:22 PM

1 Kicks, 290 Views

JSON_MODIFY function that is available in SQL Server 2016+ enables you to modify existing text formatted as JSON and add or update existing values. One common problem that happens is inserting unexpected value while trying to update existing JSON text and inject JSON object in the text.