Skip to content

Commit 926dd16

Browse files
authored
Merge pull request #6677 from jlecordier/patch-1
fix 'existing value' to 'new value'
2 parents df345e1 + f43ec7e commit 926dd16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/t-sql/functions/json-modify-transact-sql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ JSON_MODIFY escapes all special characters in the new value if the type of the v
7474

7575
The following table compares the behavior of **JSON_MODIFY** in lax mode and in strict mode. For more info about the optional path mode specification (lax or strict), see [JSON Path Expressions (SQL Server)](../../relational-databases/json/json-path-expressions-sql-server.md).
7676

77-
|Existing value|Path exists|Lax mode|Strict mode|
77+
|New value|Path exists|Lax mode|Strict mode|
7878
|--------------------|-----------------|--------------|-----------------|
7979
|Not NULL|Yes|Update the existing value.|Update the existing value.|
8080
|Not NULL|No|Try to create a new key:value pair on the specified path.<br /><br /> This may fail. For example, if you specify the path `$.user.setting.theme`, JSON_MODIFY does not insert the key `theme` if the `$.user` or `$.user.settings` objects do not exist, or if settings is an array or a scalar value.|Error - INVALID_PROPERTY|

0 commit comments

Comments
 (0)