title: Call retrofit with JSONObject.
body: <p>I have to make a get request from a server which gives me a lot of information. From what I found searching it seems like I can do this only with model classes. Thing is that to cover all the response the server sends to me I have to make 53 model classes in which to store the information.</p>
  
  <p>I was wondering if there is a simpler method, like to store the information in a JSON or something.</p>
  
  <p>I am using Retrofit with OKHttp.</p>
  
  <pre><code>getTimeSessionsCall.enqueue(new Callback&lt;JSONObject&gt;() {
          @Override
          public void onResponse(Call&lt;JSONObject&gt; call, Response&lt;JSONObject&gt; response) {
  
              Log.i("getTimeSessions",Integer.toString(response.code()));
  
          }
  
          @Override
          public void onFailure(Call&lt;JSONObject&gt; call, Throwable t) {
  
          }
      });
  </code></pre>
  
  <p>I tried this kind of call and it stores nothing. The code is 200, but the JSON remains empty.</p>
  
  <p>Thank you in advance!</p>