fix issue where JSON parsing middleware was not being hooked into