Fix #8

Fixes #8: Compress should honor threshold for JSON response