Need help with json deserialization in postgresql. I would like this query
select data from panel
that returns:
Data
1 [{"type": "opened","user": "1"},{"type": "added","user":"2"}]
2 [{"type": "added","user": "3"}]
3 [{"type": "opened","user": "3"},{"type": "opened","user":"2"}]
instead returned a table:
type user
opened 1
added 2
added 3
opened 3
opened 2
I don't quite understand how to represent the empty space between [ and {. I would appreciate any guidance as I have not found this particular example