JSON Request Stack middleware