tests pass for produces middleware
fixed a bug when json body was empty
0.0.2