Welcome! Log In Create A New Profile

Advanced

Re: rds-json generate json with index key on first level of array

February 25, 2013 03:58AM
Thanks, that would probably be possible.

It's just that this URL is called very frequently, so I'm trying to do
everything as resource efficient as possible. I am worried that parsing the
json in lua in Nginx and reformatting it would be too heavy on the server
load. So I would have preferred if there is some way how I can tell the
rds-json module to format it the way I want.

Seems there is no way to configure it in the module, so I will look for
another solution.

Thanks,

Mauro


On Mon, Feb 25, 2013 at 4:12 PM, smallfish <smallfish.xy@gmail.com> wrote:

> can use ngx_lua(openresty), filter/format the output.
> --
> smallfish http://chenxiaoyu.org
>
>
> On Mon, Feb 25, 2013 at 4:04 PM, replay <nginx-forum@nginx.us> wrote:
>
>> I just realized that I messed up the formatting. Actually what I'm looking
>> for should be like this:
>>
>> {
>>
>> 1971:{"nickname":"Robby1","age":28,"age_p":42,"city":"Dresden","plz":"","wio_plz":"2,4,5","gender":"m"},
>>
>> 1972:{"nickname":"Robby2","age":29,"age_p":43,"city":"Dresden2","plz":"","wio_plz":"4,5","gender":"f"},
>>
>> 1973:{"nickname":"Robby3","age":30,"age_p":44,"city":"Dresden3","plz":"","wio_plz":"5","gender":"m"}
>> }
>>
>> Posted at Nginx Forum:
>> http://forum.nginx.org/read.php?2,236563,236564#msg-236564
>>
>> _______________________________________________
>> nginx mailing list
>> nginx@nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
>>
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

rds-json generate json with index key on first level of array

replay February 25, 2013 02:54AM

Re: rds-json generate json with index key on first level of array

replay February 25, 2013 03:04AM

Re: rds-json generate json with index key on first level of array

smallfish February 25, 2013 03:14AM

Re: rds-json generate json with index key on first level of array

replay February 25, 2013 03:58AM

Re: rds-json generate json with index key on first level of array

agentzh February 25, 2013 03:04PM

Re: rds-json generate json with index key on first level of array

replay February 26, 2013 11:58PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 152
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready