The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Name

Web::ComposableRequest::Role::JSON - Decodes JSON request bodies

Synopsis

   package Your::Request::Class;

   use Moo;

   extends 'Web::ComposableRequest::Base';
   with    'Web::ComposableRequest::Role::JSON';

Description

Decodes JSON request bodies

Configuration and Environment

Defines no public attributes

Subroutines/Methods

decode_body

Decodes the body as JSON if the content type is application/json

Diagnostics

None

Dependencies

Encode
JSON::MaybeXS

Incompatibilities

There are no known incompatibilities in this module

Bugs and Limitations

There are no known bugs in this module. Please report problems to http://rt.cpan.org/NoAuth/Bugs.html?Dist=Web-ComposableRequest. Patches are welcome

Acknowledgements

Larry Wall - For the Perl programming language

Author

Peter Flanigan, <pjfl@cpan.org>

License and Copyright

Copyright (c) 2017 Peter Flanigan. All rights reserved

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic

This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE