title: How to use POST method to send raw JSON using Retrofit in android
body: <p>I want to post following JSON,</p>
  
  <pre><code>{
    "name": {
            "firstName": "f_name",
            "lastName": "l_name"
    },
    "password": "mypassword123",
    "email": "test.mail@gmail.com"
  }
  </code></pre>
  
  <p>register method inside Interface is,</p>
  
  <pre><code>@POST("user/createuser")
  Call&lt;RegisterResponseModel&gt; register(@Body RegisterModel body);
  </code></pre>
  
  <p>using register method like,</p>
  
  <pre><code>Name name = new Name("f_name", "l_name");
  
  RegisterModel registerModel = new RegisterModel(name, "mypassword123", "test.mail@gmail.com");
  
  Call&lt;RegisterResponseModel&gt; res = apiService.register(registerModel);
  </code></pre>
  
  <p>but couldn't reach what I want, Please help me to achieve what I need. Thanks in advance</p>