title: Map entries to JSON conversion using GSON is not passing all the entries in the request
body: <p>I am trying to convert JSON request data to JSON string using GSON. For that I am using map. But I can see, some map entries are getting ignored in the request.</p>
  <pre><code>String jsonStrReq = null;
  Map&lt;String, String&gt; patient1 = new HashMap&lt;String, String&gt;();
          patient1.put(&quot;diagnosis&quot;, diagnosis);
          patient1.put(&quot;doctorId&quot;, Prefs.getString(&quot;docid&quot;, &quot;&quot;));
          patient1.put(&quot;patientId&quot;, null);
          patient1.put(&quot;patientName&quot;, name);
          patient1.put(&quot;patientUhid&quot;, uhid);
          patient1.put(&quot;mobileNumber&quot;, phone);
          patient1.put(&quot;age&quot;, age);
          patient1.put(&quot;gender&quot;, gender);
          patient1.put(&quot;area&quot;, area);
          patient1.put(&quot;city&quot;, city);
          patient1.put(&quot;tagColor&quot;, tagColor);
          patient1.put(&quot;treatments&quot;, treatment);
          patient1.put(&quot;profilePic&quot;, null);
          Gson gsonReq = new GsonBuilder().serializeNulls().create();
          jsonStrReq = gsonReq.toJson(patient1);
          Log.d(&quot;Testing&quot;, &quot;Add Patient passed json  &quot;+jsonStrReq);
  </code></pre>
  <p>The request string I am printing is coming as:</p>
  <pre><code>Add Patient passed json  {&quot;area&quot;:&quot;fhghf&quot;,&quot;patientName&quot;:&quot;chfnb&quot;,&quot;gender&quot;:&quot;Female&quot;,&quot;city&quot;:&quot;gjfhhf&quot;,&quot;tagColor&quot;:&quot;Red&quot;,&quot;doctorId&quot;:&quot;32&quot;,&quot;patientUhid&quot;:&quot;cbfjcg&quot;,&quot;mobileNumber&quot;:&quot;xxxxxxxx&quot;,&quot;age&quot;:&quot;25&quot;}
  </code></pre>
  <p>If you see few entries are completely missing. Just want to know what is the wrong thing I am doing here.
  Please help</p>