Welcome! Log In Create A New Profile

Advanced

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

February 26, 2013 11:58PM
Thanks for the reply agentzh,

Ok, I'll probably implement this either on lua in the Nginx or on the
client side inside the javascript then. Will have to do some tests of both
solutions to decide.

Regards,

Mauro


On Tue, Feb 26, 2013 at 4:03 AM, agentzh <agentzh@gmail.com> wrote:

> Hello!
>
> On Mon, Feb 25, 2013 at 12:56 AM, Mauro Stettler wrote:
> > 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.
> >
>
> No, ngx_rds_json does not support this very JSON structure. Because
> there's tons of different possible JSON structures, I don't quite feel
> like implementing complex configuration templates in ngx_rds_json in
> pure C, which is a daunting task and adds complexity to this simple
> module.
>
> I believe using ngx_lua for complicated formatting requirements is the
> right way to go.
>
> Best regards,
> -agentzh
>
> _______________________________________________
> 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: 303
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