Plack::Middleware::ValidateJSON
Check validity of JSON POST'ed to the app and generate a 422 HTTP response if the JSON is not valid
See POD for Plack::Middleware for specs. Returns an HTTP 422 response in the event of invalid JSON.
To install Plack::Middleware::ValidateJSON, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Middleware::ValidateJSON
CPAN shell
perl -MCPAN -e shell install Plack::Middleware::ValidateJSON
For more information on module installation, please visit the detailed CPAN module installation guide.