1The Unix Philosophy
The middleware pattern follows the Unix philosophy: 'Write programs that do one thing and do it well. Write programs to work together.' An authentication middleware shouldn't parse JSON, and a JSON parser shouldn't authenticate. Keep them separate and chain them together.
