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

NAME

Plack::Middleware::ValidateJSON

DESCRIPTION

Check validity of JSON POST'ed to the app and generate a 422 HTTP response if the JSON is not valid

PUBLIC METHODS

call

See POD for Plack::Middleware for specs. Returns an HTTP 422 response in the event of invalid JSON.