Many thanks to William Cox for his complete and most useful answer: works like a charm, exactly what I was looking for!
BO >> >> $m->req->content will provide you with the request body. >> >> Further request introspection can be done via: >> https://metacpan.org/pod/Plack::Request >> >> -- William Cox >> > I'd like to POST json data to a Mason component but it appears not > possible to access it from $.args (as it references the request > paramters and not the body). > > What would be the way to get direct access to the request body? > HTML::Mason Tips and Traps specifically advised not to use $r->content > and to use $REQ->http_input instead. But this does not seem to work in > Mason(2). > > How should I otherwise parse the posted application/json data? > > BO ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users