title: How to call json rest service in html through dojo
body: <p>I am developing an maven web application using rest web services. I am trying to call the simple web service from the dojo. But I  did not know getting started to call rest service through dojo. My web service code is:</p>
  
  <pre><code>@GET
  @Path("/users")
  @Produces("application/json")
  public ArrayList dynamicFetch() {
  
      ArrayList&lt;User&gt; ar = new ArrayList&lt;User&gt;();
      User u1 = new User(1,"Test",30);
      ar.add(u1);
      u1 = new User(2,"test2",31);
      ar.add(u1);
      return ar;
  }
  </code></pre>
  
  <p>Which executes and shows</p>
  
  <pre><code>[{"age":30,"name":"Test","id":1},{"age":31,"name":"test2","id":2}]
  </code></pre>
  
  <p>How can i call this json object in html through dojo since all my elements are dojo..?</p>
  
  <p>Please Help any help will be apprciated more</p>
  
  <p>Thanks</p>