title: How to get JSON ARRAY and JSON object response from retrofit response?
body: <p>I have worked with file upload using retrofit. It works fine. But how do handle the retrofit success response. and How do i create serialization model class for below Json array and Json object.  </p>
  
  <pre><code>{
          "result": [{
              "fileId": 869,
              "status": 1,
              "pcData": {
                  "id": 652,
                  "filename": "IMG_20161122_175344.jpg",
                  "filepath": "uploads\/peoplecaddie\/files\/1743_1481109145_IMG_20161122_175344.jpg"
              }
          }]
      }
  </code></pre>
  
  <p>Here is My call method </p>
  
  <pre><code>Call&lt;ServerResponse&gt; call = service.upload("817b6ce98fd759e7f148b948246df6c1", map, idReq, fileCountReq, fileTypeReq, platformReq, externalIDReq);
          call.enqueue(new Callback&lt;ServerResponse&gt;() {
              @Override
              public void onResponse(Call&lt;ServerResponse&gt; call, Response&lt;ServerResponse&gt; response) {
                  ServerResponse serverResponse = response.body();
                  Log.e("serverResponse", "serverResponse" + serverResponse.toString());
                  if (serverResponse != null) {
  
  
                  }
  
              }
  
              @Override
              public void onFailure(Call&lt;ServerResponse&gt; call, Throwable t) {
  
              }
          });
  </code></pre>
  
  <p>I am having doubt that how to implement ServerResponse model class with JSON array field, JSON object field and string values which is inside JSON object. </p>
  
  <pre><code>public class ServerResponse {
      //How to handle my response with in this model class.
  
  }
  </code></pre>
  
  <p>Please help me to solve this. Thanks in advance.</p>