3.0 fix query json

Fixes https://github.com/cakephp/cakephp/issues/4293
json => JSON maybe