Here are two ways to use json_array_elements_text() method.
1st method:
SELECT id, json_array_elements_text(json_column)
FROM Table
2nd method:
SELECT id, json_index.json_column
FROM Table T
LEFT JOIN LATERAL json_array_elements_text(json_column) AS json_index(json_column) ON true
I found both methods give the same output, but can we use them interchangeably?
.