I have a field that I want to cast as json but the keys are single quoted instead of double quoted:
{'id': 12249, 'value': 'any string'}
{'id': 12232, 'value': 'other thing'}
I am using this:
select replace(column,'''','"')::jsonb as columnj from table
The code above works fine until it finds a row with None like this:
{'id': None, 'value': None}
How can I fix this situation?