throw exception if scalar json response is received
Minor CS cleanups, adding `@group` annotations to tests for #5956
Merge branch 'hotfix/#5956-zend-json-server-options-enforced-as-array'

Close #5956