I have a JSON field the looks like this
[{"header":"C", "value": 1"},{"header":"D", "value": 2},{"header":"E", "value": 3}]
I want to change the name of the JSON value header and set it to '' but I was only able to change the value.
UPDATE Files SET Columns = REPLACE(Columns, '"header":', '"test":')
I want it to look like this:
[{"test":"", "value": 1},{"test":"", "value":2},{"test":"", "value": 3}]
Is there a way to set the renamed values to be "" in the REPLACE function?
-EDIT - how do I keep the 2nd value the same while also clearing the first value and changing the name of it?