title: render JSON data in view - play framework
body: <p>I am new to play. I am using renderJSON to generate JSON data. How can I access this data in my view. I tried render("view",jsonobject). while I am trying to access this object in jquery script, not receiving any data here. </p>
  
  <p>I tried with an ajax call. following methods are in my controller</p>
  
  <pre><code>public static void getJSONWords(){
   .......
   render(jsonObject);
  }
  
  public static void wordcloud(){
      render();
  }
  </code></pre>
  
  <p>and my view "wordcloud.html" makes an ajax</p>
  
  <pre><code>       $.ajax({
  
      url: "/getJSONWords",
      dataType : 'json',
      success: function (data) {
               .......
              });
  </code></pre>
  
  <p>but I'm not getting any data for our ajax call. I tried with Firfox debugger, check log file ajax call is calling respective controller action. thanks for your help</p>