After updating ZF2 application to latest master (9f4dd7f13c) all controllers return an empty JSON response:
{"content":[]}
Tracing JsonRenderer::selectRenderer
, $match
at Line 106 succeeds because the browser (Google Chrome 18) sends */*
in the Accept header, which triggers the JsonRenderer
despite the fact that text/html
is the primary Accept type and the controller returns a ViewModel.