I'm posting multiple JSON arrays to but it gives an error internal server error but it's working fine on postman
Interface
 @Headers({
            "Content-Type: application/json",
            "Authorization: Basic c3ltby1hcHAtaW9zOmE4ODI4NjY1LTU1MzgtNGNlYy1hYzU4LWE0YmU0NmE1Y2Y3OA==",
            "client-id: bitmoon-app-android"
    })
    @POST("medical-ic10/public/api/user/pending")
        Call<JSONObject>  SUBMIT_OFFLINE_RECORD(@Body JSONObject offlineRequest);
implementation
 public void getData(JSONObject J) {
        Api api= RetrofitClientInstance.getRetrofitInstance().create(Api.class);
        Call<JSONObject> call=api.SUBMIT_OFFLINE_RECORD(J);
        call.enqueue(new Callback<JSONObject>() {
            @Override
            public void onResponse(Call<JSONObject> call, Response<JSONObject> response) {
            }
            @Override
            public void onFailure(Call<JSONObject> call, Throwable t) {
                Toast.makeText(Offlinerecord_Activity.this, ""+t.getLocalizedMessage(), Toast.LENGTH_SHORT).show();
        Log.e("GSON",t.getLocalizedMessage());
            }
        });
    }
JSON OBJECT
{"data":[{"id":"15","pName":"15","pAge":"15","pGender":"15","pPhone":"15","pNIC":"15","pDiagnosis":"15","dName":"15","dSpeciality":"15","dPhone":"15","dInstitution":"15","dAssistantName":"15","dCity":"15"}]}
Postman Screen

 
     
    