Need help with capture



  • i want to capture second one(total credit) and want a guide on regex

    Any help would be appreciated

    {
       "isWalletEnabled" : true,
       "isWalletRedeemEligible" : true,
       "refundCredit" : {
          "currencyIso" : "INR",
          "formattedValue" : "₹ 0.00",
          "priceType" : "BUY",
          "value" : 0.0
       },
       "totalCredit" : {
          "currencyIso" : "INR",
          "formattedValue" : "₹ 0.00",
          "priceType" : "BUY",
          "value" : 0.0
       },
       "totalPromoCredit" : {
          "currencyIso" : "INR",
          "formattedValue" : "₹ 0.00",
          "priceType" : "BUY",
          "value" : 0
       },
       "walletTransactions" : [ {
          "transactionMonthYear" : "01/2020",
          "walletTransactions" : [ {
             "amount" : {
                "currencyIso" : "INR",
                "formattedValue" : "₹ 1,029.00",
                "priceType" : "BUY",
                "value" : 1029.0
             },
             "order" : "9988769616",
             "transactionDate" : "2020-01-28T22:01:56+0530",
             "transactionType" : "DEBIT"
          } ]
       }, {
          "transactionMonthYear" : "12/2019",
          "walletTransactions" : [ {
             "amount" : {
                "currencyIso" : "INR",
                "formattedValue" : "₹ 1,029.00",
                "priceType" : "BUY",
                "value" : 1029.0
             },
             "order" : "9982868324",
             "transactionDate" : "2019-12-02T20:03:14+0530",
             "transactionType" : "CREDIT"
          } ]
       } ]
    }
    

  • Admin

    Use JSON parsing instead, it's much more fit for this purpose. You can tick the JToken option and type totalCredit.value to get the result you want. I suggest you read this guide https://forum.openbullet.dev/topic/37/parsing-complex-json-using-jtokens


Log in to reply