Fix #8

Fixes #8: Compress should honor threshold for JSON response
Merge pull request #9 from logicoder/master

Fix #8