title: extract value from JSON Array
body: <p>I'm trying to extract value from a <code>JSon</code> Array. My above code displays the "response" in textview. I get the response as <code>[{"JsonOutput":"Er"}]</code> in the <code>textview</code> at present. I want to extract Er and set to <code>TextView</code>.</p>
  
  <pre><code>  public void onCreate(Bundle savedInstanceState) {
  
          if (android.os.Build.VERSION.SDK_INT &gt; 9) {
              StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
              StrictMode.setThreadPolicy(policy);
              }
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          tvData1 = (TextView)findViewById(R.id.textView1);
  
  
          button=(Button)findViewById(R.id.button1);
  
          button.setOnClickListener(new OnClickListener() {
  
              @SuppressLint("NewApi")
              public void onClick(View v) {
                    SoapObject request = new SoapObject(WSDL_TARGET_NAMESPACE,     OPERATION_NAME);
                      PropertyInfo propertyInfo = new PropertyInfo();
                      propertyInfo.type = PropertyInfo.STRING_CLASS;
                      propertyInfo.name = "eid";
  
                      edata =(EditText)findViewById(R.id.editText1);
                      studentNo=edata.getText().toString();
  
                      request.addProperty(propertyInfo, studentNo);
  
                              SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
                              SoapEnvelope.VER11);
                              envelope.dotNet = true;
  
                              envelope.setOutputSoapObject(request);
  
                              HttpTransportSE httpTransport = new HttpTransportSE(SOAP_ADDRESS);
  
                              try  {                    
                              httpTransport.call(SOAP_ACTION, envelope);                    
                              Object response = envelope.getResponse();                    
                              tvData1.setText(response.toString());
  
                             // Do here something to extract value (Er) from the key:value pair. 
  
  
  
  
  
                              }  catch (Exception exception)   {
                                            tvData1.setText(exception.toString());                    
                              }
  
                      tvData1 = (TextView)findViewById(R.id.textView1);
  
              }
          });
  
  
  
   }
  }
  </code></pre>