title: Where should I create a template for a json view in CakePHP 3?
body: <p>I am using CakePHP 3.1 and trying to render the json index response for <code>User</code> model. I followed the <a href="http://book.cakephp.org/3.0/en/views/json-and-xml-views.html#using-a-data-view-with-template-files" rel="nofollow">CakePHP manual page</a> and created <code>index.ctp</code> under the directory <code>src/Template/Users/json/</code>, but the file does not get hooked by the controller. I also tried <code>src/View/Users</code>, which also did not work. Should I specify a file to render or something else? In <code>src/Controller/UsersController.php</code>, I have <code>index()</code> method with</p>
  
  <blockquote>
    <p>$users = $this->paginate('Users');
    $this->set(compact('users'));</p>
  </blockquote>