Hey Michael,

Michael Peters <[EMAIL PROTECTED]> wrote:
Hello all,

I've found myself putting some very similar code into my base classes
of late to more easily deal with sending JSON to my Ajax
applications. So of course I thought I should put this out as a
plugin. I haven't uploaded to CPAN yet cause I wanted to see if
anyone had any thoughts about the interface, etc.

That looks great -- I'll use it!

The only suggestion I have about the interface is that maybe it could allow this:

   # add_json_header() is cumulative
   $self->add_json_header( foo => 'Lorem ipsum...');
   $self->add_json_header( bar => [ 0, 2, 3, 4 ] );
   $self->add_json_header( baz => { stuff => 1, more_stuff => 2 });


to also be done like this:

  $self->add_json_header(
       foo => 'Lorem ipsum...',
       bar => [ 0, 2, 3, 4 ] ),
       baz => { stuff => 1, more_stuff => 2 },
  );


Lookiing forward to playing with it!

-dave

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to