title: Android studio print JSON response
body: <p>Hi I am trying to print a JSON response into a readable form that I can then set to a Textview. This is the code where I am trying to print the JSON response.</p>
  
  <pre><code> StringRequest stringRequest = new StringRequest(Request.Method.POST, url, new Response.Listener&lt;String&gt;() {
              @Override
              public void onResponse(String response) {
                  try {
                      Log.d("json", response);
                      //Creating JsonObject from response String
                      JSONObject jsonObject = new JSONObject(response);
                      //extracting json array from response string
                      JSONArray jsonArray = jsonObject.getJSONArray("data");
                      JSONObject jsonRow = jsonArray.getJSONObject(0);
                      //get value from jsonRow
                      leaderboardView.setText(jsonArray.toString());
  </code></pre>
  
  <p>it does print the JSON but in a JSON format. this is the JSON format I am receiving.</p>
  
  <pre><code>{"data":[{"username":"DolanF","score":"4220","rank":"1"},{"username":"reyay","score":"3760","rank":"2"},{"username":"MeghanG","score":"2570","rank":"3"},{"username":"PrimGosling","score":"1360","rank":"4"},{"username":"JakubRozanski","score":"1190","rank":"5"},{"username":"rodyquigley","score":"1120","rank":"6"},{"username":"Kaz835","score":"800","rank":"7"},{"username":"bailey","score":"570","rank":"8"},{"username":"Ellis","score":"430","rank":"9"},{"username":"Joel","score":"390","rank":"10"}]} 
  </code></pre>
  
  <p>my goal is to get the username, rank and score printing in a readable format each row underneath each other. </p>