JSON_MODIFY function uses JSON text as input parameter, and modifies a value on the specified path using third argument:
declare @json nvarchar(4000) = N'{"Id":1,"Name":"Toy Car","Price":34.99}'
set @json = JSON_MODIFY(@json, '$.Price', 39.99)
print @json -...