Looks my question is unusual because I didn't find the answer at all.
Let's imagine, I have table A
with columns: language
and uri
.
language | uri ---------|----------------- ru | some-uri en | some-another-uri ...
My question is: How can I return JSON object instead of many rows. E.g.:
{
"ru": "some-uri",
"en": "some-another-uri",
...
}