Change the JSON renderer to enforce the 'JS' Content Type

The controller can set the response format as 'JSON' before the renderer code be evaluated, so we must replace it when necessary.

Fixes #15081

/cc @rafaelfranca @josevalim
Blank like after the `end`