We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello
I am using Postgres 9.4 with JSONB fields.
I want to do a query which returns JSON to the web browser from Nginx.
How do I do this? Currently I get a result set back that contains the field name and then JSON is provided as text.
thanks!
The text was updated successfully, but these errors were encountered:
@dukedougal Hmm, maybe we could let ngx_rds_json module support such JSONB fields directly.
Sorry, something went wrong.
After I posted the issue here I tried the following query which pretty much returns the JSON that I need.
There might be improvements or better ways to do it but at the moment I think this is probably good enough.
select row_to_json(row) from (select key, snapk->'name' as name, snapk->>'keywords' as keywords from snapk LIMIT 50 $offset_string) row;
+1
No branches or pull requests
Hello
I am using Postgres 9.4 with JSONB fields.
I want to do a query which returns JSON to the web browser from Nginx.
How do I do this? Currently I get a result set back that contains the field name and then JSON is provided as text.
thanks!
The text was updated successfully, but these errors were encountered: