Answer the question
In order to leave comments, you need to log in
Converting table text entries to json?
There are hundreds of records in the table in the form of "{\"tags_in\":[393],\"tags_out\":[395]}"
a string.
Is it possible to convert them to json {"tags_in":[393],"tags_out":[395]}
without losing this data?
Answer the question
In order to leave comments, you need to log in
update tablename set jsoncol = cast(cast(data as json)#>>'{}' as json);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question