Revert "Add support for JSON responses"

This reverts commit a19e28cb1941578736f16b013dead93574828399.