title: Get Retrofit result as Json Object in Android
body: <p>I am using Retrofit API for communication. I want JSON Object to be stored directly in the Retrofit Result Bean. I tried the below process and it produced in null value. but while using postman the result is proper only.</p>
  
  <p>The below is the output of the API</p>
  
  <pre><code>{
    "status": 101,
    "message": "Ok",
    "type": 1,
    "data": {
      "value": "adakdj4lkj43"
    }
  }
  </code></pre>
  
  <p>The data field above keeps on changing as per the input in one case value on other case date this data depends on the type</p>
  
  <p>below is my ResponseBean</p>
  
  <pre><code>public class ResponseBean {
      private int status = 0;
      private String message = "";
      private int type = 0;
      private JSONObject data = new JSONObject();
  }
  </code></pre>
  
  <p>When performing the retrofit call I am getting this data as {} which means there is no data. Please help me to solve this. Thanks in Advance.</p>