title: Android json not working in the "IF"
body: <p>My code does not work from the <code>if (jsonObject.names().Get(0).equals("success"))</code></p>
  
  <pre><code>request = new StringRequest(Request.Method.POST, URL, new Response.Listener&lt;String&gt;() {
      @Override
      public void onResponse(String response) {
          try {
              JSONObject jsonObject = new JSONObject(response);
              if(jsonObject.names().get(0).equals("success")){
                  Toast.makeText(getApplicationContext(),"SUCCESS "+jsonObject.getString("success"),Toast.LENGTH_SHORT).show();
                  startActivity(new Intent(getApplicationContext(),aprenderActivity.class));
              }else {
                  Toast.makeText(getApplicationContext(), "Error" +jsonObject.getString("error"), Toast.LENGTH_SHORT).show();
              }
  
          } catch (JSONException e) {
              e.printStackTrace();
          }
  </code></pre>
  
  <p>In the php file</p>
  
  <pre><code>{ "success": " Welcome teste"}
  </code></pre>