I want to call another method if the condition is satisfied with the response of first method. But the response is in JSON and has many objects. I want to check if "RESPCODE" is "01" and if it is call a method.
Method:
@Override
public void onTransactionResponse(Bundle inResponse) {
    Log.d("LOG", "Payment Transaction is successful " + inResponse);
    if(inResponse.toString().equals("01")) {
        CheckoutProcess();
    } else {
        Toast.makeText(getApplicationContext(), "Transaction Failed ", Toast.LENGTH_LONG).show();
        Log.d("LOG", "Payment Transaction : " + inResponse);
    }
}
Response:
TXNAMOUNT = 1000.00
PAYMENTMODE = PPI
CURRENCY = INR 
TXNDATE = 2018-04-17 18:56:08.0
STATUS = TXN_SUCCESS
RESPCODE = 01
RESPMSG = Txn Success
GATEWAYNAME = WALLET
BANKTXNID = 
BANKNAME = WALLET
 
     
    