I have a table with several fields (id, title, json_field). I want to select all rows from this table, but I want each parameter inside json_field to be a separate row in result. I guess I should use json_array_elements, but the problem is that I can't understand how to include it in my query.
Is there are solution? I expected it to work with with this query:
select id, title, json_array_elements(json_field) from table_name, but it doesn't.
I also tried to pass subquery result as an argument, not succeeded as well.
I read through the docs (http://www.postgresql.org/docs/9.3/static/functions-json.html) but I can't find anything helpful.
Thanks a lot for the help!