I have a table, in this table I have a JSON field. In this field I store arrays with some data. For example:
- ["a", "", "c"]
- ["", "", ""]
- ["a", "b", "c"]
I need to clear this field from empty values and get:
- ["a", "c"]
- null
- ["a", "b", "c"]
Then update the filed values.
REPLACE('[]',NULL,REPLACE('"", ','',columnJson))like this?