I am using postgresql for my webapplication. I am new to this Postgresql-json. I Just want to get the select query result in the form of json structure. Here are my details:
could any tell me how to get my expected result structure from database.
I'm reasonably certain this is not provided for by PostgreSQL. The lack of any affirmative response would tend to support my conclusion.
I imagine you can write a function that accomplishes this goal by obtaining the found value as each element level, as well as keeping track of depth, and constructs a json value itself from the results.