title: json post body help, using retrofit and jsonObject
body: <p>As simple as this json looks I cannot get it formatted correctly to post in body.</p>
  
  <pre><code>{
      "requests": [
          {
              "action": "reject",
              "justification": "admin reason",
              "requestId": "ee4a5b4f3af54d849a63e305c13f6c8d"
          }
      ],
      "justification": "admin reason"
  }
  </code></pre>
  
  <p>Here is what I have so far in Android studio using retrofit2</p>
  
  <pre><code>Gson gson = new GsonBuilder()
      .setLenient()
      .create();
  Retrofit.Builder builder = new Retrofit.Builder()
      .baseUrl("https://myurl.com/")
      .addConverterFactory(GsonConverterFactory.create(gson));
  JsonObject jsonObject = new JsonObject();
  JsonObject jsonObjectN = new JsonObject();
  jsonObject.addProperty("action", action);
  jsonObject.addProperty("request_id", request_id);
  jsonObject.addProperty("justification", "blablabla");
  jsonObjectN.add("requests", jsonObject);
  jsonObjectN.addProperty("justification", justification);
  Retrofit retrofit = builder.build();
  Client client = retrofit.create(Client.class);
  Call&lt;PostRequest&gt; user = client.postRequests(jsonObjectN);
  </code></pre>
  
  <p>In client class I have</p>
  
  <pre><code>@Headers("Content-Type: application/json")
  @POST("/requests")
  Call&lt;PostRequest&gt; postRequests(@Body JsonObject body
  
  );
  </code></pre>
  
  <p>So the request is like this </p>
  
  <pre><code>Request{method=POST, url=https://myurl.com/v1.0/approver/requests, tags={class retrofit2.Invocation=com.loginci.rgcislogin.Client.postRequests() [{"requests":{"action":"reject","request_id":"23423423refsdsdgdg","justification":"blablabla"},"justification":"Action done by Admin"}]}}
  </code></pre>
  
  <p>Very close but I cant quite figure out how to make it in the exact array/json format as its expecting?? 
  Hopefully someone knows Android and jsonObject well enough to help. </p>