title: How to generate JSON response from JSF?
body: <p>I have created a page where I want to get the JSON response from a JSF page, 
  but when i try to get page it shows me whole html page.</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;head&gt;
          &lt;title&gt;Facelet Title&lt;/title&gt;&lt;/head&gt;&lt;body&gt;
  [{"value": "21", "name": "Mick Jagger"},{"value": "43", "name": "Johnny Storm"},{"value": "46", "name": "Richard Hatch"},{"value": "54", "name": "Kelly Slater"},{"value": "55", "name": "Rudy Hamilton"},{"value": "79", "name": "Michael Jordan"}]
  
  &lt;/body&gt;&lt;/html&gt;
  </code></pre>