title: how can i pass java object from server side to client side
body: <p>can i pass java POJO class object to client side .
  <br>for example user send request to server <strong>"/user"</strong>. server should  send response as <strong>User.java</strong> object
  <br><br>User.java class is</p>
  
  <pre><code>public class User {
  
  private String name = null;
  private String education = null;
  
  public String getName() {
      return name;
  }
  public void setName(String name) {
      this.name = name;
  }
  public String getEducation() {
      return education;
  }
  public void setEducation(String education) {
      this.education = education;
  }
  </code></pre>
  
  <p>}</p>