title: Get JSON object one by one from JSON array in Android using Retrofit and RxJava
body: <p>I am using retrofit to hit my network api which returns json array. I am doing so using following code-</p>
  
  <pre><code>Observable&lt;MyJson[]&gt; response = (Observable&lt;MyJson[]&gt;)mNetworkService.getReadyObserverable(mNetworkService.getNetworkServiceApi().getMyDataJsons(), MyJson.class, true, useCache);
          mAirlineSubscription = response.subscribe(new Observer&lt;MyJson[]&gt;() {
              @Override
              public void onCompleted() {
                  Log.d(TAG, "getData completed..");
              }
  
              @Override
              public void onError(Throwable e) {
                  Log.e(TAG, "onError: "  + e.getLocalizedMessage());
              }
  
              @Override
              public void onNext(MyJson[] myJsonData) {
                  //I want here json data one by one
              }
  </code></pre>
  
  <p>But my problem is json data array get downloaded completely and then only 
  <code>onNext</code> gets called. Here I want <code>onNext</code> should get called when retrofit downloads first json object from <code>myData[]</code> json array and keep continue until my all json objects of <code>myData[]</code> get downloaded. This way my UI would look more responsive and better in terms of user interaction.</p>
  
  <p>Can anyone help to fix this?</p>