title: JSON adding backslash automatically
body: <p>I am trying to convert a java object to json using Gson. But when i tried printing it out.I got this JSON</p>
  
  <blockquote>
    <p>{"user":"{\"email\":\"abc@gmail.com\",\"lastName\":\"Las\",\"name\":\"amy\",\"password\":\"qwe123\",\"phone\":\"8901245244\"}"}</p>
  </blockquote>
  
  <p>I tried</p>
  
  <blockquote>
    <p>s.replace("\\"", "\"") 
    but neither it helps nor its a good approach.</p>
  </blockquote>
  
  <p>Further I have gone through various links but answers are ambiguous.</p>
  
  <p>This is my User class toString method</p>
  
  <pre><code> public class User implements Serializable
  { ...
  @Override
  public String toString()
  {   return "User{" +
              "first_name:" + name+
              ", last_name:" + lastName+
              ", mobile:" + phone+
              ", email:" + email+
              ", password:" + password+
              "}";
  }
  </code></pre>
  
  <p>I guess its not even calling this toString method.</p>
  
  <p>and here is how am I converting to JSON</p>
  
  <pre><code>        User u=new User(name,lastName,email,phone,password);
          Gson userGson=new GsonBuilder().create();
          String jo=userGson.toJson(u);
  
          JSONObject params=new JSONObject();
          params.put("user",jo);
          Log.e("in register",params.toString());
  </code></pre>
  
  <p>Any help is appreciated.</p>