Pretty print the JSON if available (5.4+)
Add support for binary requests
Ensure we output valid JSON
Add test for valid JSON
Merge branch 'bugfix-valid-json'

* bugfix-valid-json:
  Add test for valid JSON
  Ensure we output valid JSON
Merge branch 'feature-pretty-json'

* feature-pretty-json:
  Pretty print the JSON if available (5.4+)