What is the proper way to convert any text (or varchar) to jsonB type in Postgres (version 9.6) ?
jsonB
For example, here I am using two methods and I am getting
If your text is just a json format text, you could just explicitly cast it to json/jsonb like this:
select '{"a":"b"}'::jsonb