title: How to return json array with resful service
body: <p>Here code return JSON</p>
  
  <pre><code>@RequestMapping(method = RequestMethod.GET, value="/json")
  public @ResponseBody employee json(HttpServletRequest request) {
      String name = request.getParameter("name");
      employee ep = new employee();
      ep.setResult(name);
      return ep;      
  }
  </code></pre>
  
  <p>class employee :</p>
  
  <pre><code>public class employee {
      String result;
      public employee(){}
  
      public String getResult() {
          return result;
      }
  
      public void setResult(String result) {
          this.result = result;
      }
      public employee(String result) {
          this.result = result;
      }
  }
  </code></pre>
  
  <p>when i call url : <a href="http://localhost:8080/controller/json?name=abc" rel="nofollow">http://localhost:8080/controller/json?name=abc</a></p>
  
  <p>my result is <code>{"result":"abc"}</code></p>
  
  <p>but my expect is <code>{"employee" :[{"result":"abc"}]}</code></p>
  
  <p>so how can i do it?</p>