I activated the JsonStrategy
in a ZF2 application and can get JSON output now using AcceptableViewModelSelector Controller Plugin.
It works only with the HTTP Request parameter Accept
containing application/json
.
Where is application/json
defined as proper value for JSON output? (How) Can I define and use foo/bar
instead?
Directly in the definition array of the accept criteria: