Braid middleware for dealing with JSON in requests and responses