Background
I have a table and one of the column contains data that looks like this:
[{"category": "Sports & Outdoors", "rank": 218, "link": "www.foop.com"},{"category": "Bike Saddle Covers", "rank": 1, "link" : "www.foo2.com"}] 
From what I understand, the above is a json array. I tried select json_array_length(col_1) from mytable and was able to get back a length of 2 so I know it is a json array.
Issue
I am looking to extract value for the key category from each json inside the array.
I am unsure how to proceed. I know that if it was a simple json I can do something like  select col_name -> 'category' from table.
What I tried
`select array_to_json(col_1) from mytable`
Error: function array_to_json(character varying) does not exist
I also tried select array_to_json(col_1::varchar) from mytable
I would appreciate any help here as i am very new to sql and have only done basic querying.
