title: Parse multiple json with retrofit
body: <p>This is the structure of my json which i want to send to server from android client using retrofit. i have tried several ways, but nothing worked. Looking for a solution here with your valuable advice. thanx in advance</p>
  <pre><code>private int studentId;
    private Set&lt;Degrees&gt; studentdegrees;
    private Set&lt;Course&gt; coursenames;
    private Set&lt;CourseAvailability&gt; availabilities;
  </code></pre>
  <p>Below is the json</p>
  <pre><code>{
      &quot;studentId&quot; : 440,
      &quot;firstName&quot; : &quot;nelu&quot;,
      &quot;lastName&quot; : &quot;wakaran&quot;,
      &quot;dateOfBirth&quot; : &quot;2021-02-02&quot;,
          &quot;memberSince&quot; : &quot;2020-01-20&quot;,
  
      &quot;Degrees&quot; :[
          {
          &quot;studentDegree&quot;: &quot;xxx&quot;,
          &quot;yearOfPassing&quot; : &quot;1985&quot;,
          &quot;institutionName&quot; : &quot;xxx&quot;,
          &quot;InstitutionLocation&quot; : &quot;xxxx&quot;
  
          }
  
      ],
       &quot;course&quot; :[
          {
          &quot;registrationNumber&quot;: &quot;xxxx&quot;,
          &quot;coursename&quot; : &quot;xxxx&quot;,
          &quot;stateCode&quot; : &quot;MH&quot;,
          &quot;dateOfregistration&quot; : &quot;2020-01-20&quot;,
          &quot;status&quot; : true
  
          }
  
      ],
        &quot;avalabilities&quot; :[
          {
          &quot;day&quot;: &quot;Friday&quot;,
          &quot;sessionStartTime&quot; : &quot;4am&quot;,
          &quot;sessionEndTime&quot; : &quot;4am&quot;,
       
  
          }
  
      ]
  
  
  }
  
  Created three pojos
  Student 
  Degree
  Course
  CourseAvailability
  </code></pre>
  <p><strong>Below is response json</strong></p>
  <pre><code>{
      &quot;message&quot;: &quot;Student profile updated successfully&quot;,
      &quot;status&quot;: 200
  }
  </code></pre>
  <p><strong>My retrofit call</strong></p>
  <pre><code> @POST(&quot;user/updateStudentProfile&quot;)
    Call&lt;StudentProfileResponse&gt; addCourse(@Body Student student);
  </code></pre>
  <p>This is how i am calling my call in retrofit</p>
  <pre><code>Call&lt;StudentProfileResponse&gt; responseCall = AppAuthClient.vuAPIServices().addCourse(student);
      responseCall.enqueue(new Callback&lt;StudentProfileResponse&gt;() {
        @Override
        public void onResponse(@NotNull Call&lt;StudentProfileResponse&gt; call, @NotNull Response&lt;StudentProfileResponse&gt; response) {
          if (response.isSuccessful()) {
  
   
  </code></pre>