In Multi-Objects JSON array, I would like to modify all the values of objects and I have difficulty in accessing the values i.e.,
EXAMPLE--
DECLARE @json nvarchar(MAX)
SET @json = N'[{"name": "John","sex": "F"}, {"name": "Jane","sex": "F"}]'
I would like to modify sex value of all objects to "M".
JSON_MODIFY(@json, '$.Sex', 'M')
is not working. Are there any methods to solve my issue?