title: Navigate In Json (Java)
body: <p>I am not familiar with JSON so if I am using wrong terms, sorry for that.</p>
  
  <p>So I have this URL: </p>
  
  <pre><code> final String PRICE_TRY_URL = "https://api.coindesk.com/v1/bpi/currentprice/try.json";
  </code></pre>
  
  <p>And it returns something like this:</p>
  
  <p>Formatted JSON Data</p>
  
  <pre><code>{  
     "time":{  },
     "disclaimer":"This data was produced from the CoinDesk Bitcoin Price Index (USD). Non-USD currency data converted using hourly conversion rate from openexchangerates.org",
     "bpi":{  
        "USD":{  
           "code":"USD",
           "rate":"6,911.7500",
           "description":"United States Dollar",
           "rate_float":6911.75
        },
        "TRY":{  
           "code":"TRY",
           "rate":"35,738.0058",
           "description":"Turkish Lira",
           "rate_float":35738.0058
        }
     }
  }
  </code></pre>
  
  <p>All I want to do is reach TRY's rate. 
  I get that data with the code below.</p>
  
  <pre><code>public void doNetworking(){
          AsyncHttpClient client=new AsyncHttpClient();
          client.get(PRICE_TRY_URL, new AsyncHttpResponseHandler() {
  
                      @Override
                      public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {
                          Log.d("BitcoinTracker","Succes in doNetworking");
                          // byte[] responseBody can be parsed to a json object.
                          parseJson(responseBody);
                      }
  
                      @Override
                      public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {
                          Log.e("BitcoinTracker", "Fail " + error.toString());
                      }
                  }
          );
  </code></pre>
  
  <p>And here is my method :</p>
  
  <pre><code>public void parseJson(byte[] responseBody){
          try {
              JSONObject bitcoinJson  =new JSONObject(new String(responseBody));
              String currency=  bitcoinJson.getString("bpi");
              Log.d("bitcoinmanager",currency);
  
          } catch (JSONException e) {
              Log.d("BitcoinPrice","BitcoinPriceManager onSucces converting json from byte[] failed.");
              e.printStackTrace();
          }
      }
  </code></pre>
  
  <p>As you can see above I use this statement :</p>
  
  <pre><code>String currency=  bitcoinJson.getString("bpi");
  </code></pre>
  
  <p>And with this statement, I can't reach my destination point which is TRY's rate. How can I navigate in JSON formatted text? </p>
  
  <p>NOTE: I add the getting JSON data part to make sure that my question is clear, hope it is not too much.</p>