add new specs for JSON middleware