-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
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
Postgres 9.4 JSON response #44
Comments
@dukedougal Hmm, maybe we could let ngx_rds_json module support such JSONB fields directly. |
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 |
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: