title: how to get the specific value of JSON response from JAX-RS ?
body: <p>I am using JAX-RS with <code>jersey 1.6</code> to consume the API. i have so far been able to consume it but now i need some specific values only. </p>
  
  <p>how i am consuming api:- </p>
  
  <pre><code>ClientResponse ebpResonse = ebpResource.type("application/json")
          .header(HttpHeaders.AUTHORIZATION, token)
             .post(ClientResponse.class, ebpReq1);
  
  
  
  System.out.println("ebp response is: " + ebpResonse.getEntity(String.class));
  </code></pre>
  
  <p>i receive response which looks like this:- </p>
  
  <pre><code>{
      "code": "2075-4673",
      "data": {
          "requestId": 4673,
          "requestCode": "2075-4673",
          "fiscalYear": {
              "fiscalYearId": 2075,
              "fiscalYearCode": "2075/76"
          },
          "requestDate": 1531851300000,
          "requestNdate": "2075/04/02",
          "rcAgency": {
              "id": 2373,
              "code": "210003501",
              "rcAgencyEDesc": "ABC",
              "rcAgencyNDesc": " सेवा ",
              "nepaliName": " सेवा",
              "engishName": null
          },
          "status": 1,
          "pan": "500127108",
          "payerCode": null,
          "payerEdesc": "ABC Enterprises",
          "payerNdesc": null,
          "payerAddress": null,
          "payerPhone": null,
          "totalAmount": 14000,
          "createdBy": "psctest",
          "createdOn": 1531851300000,
          "collectedBank": null,
          "collectedDate": null,
          "collectedBy": null,
          "token": "xxxxxxxxxxxxxxxx",
          "details": [
              {
                  "ebpNo": "4977",
                  "sno": 1,
                  "depositSlipNo": null,
                  "purpose": null,
                  "revenueHead": {
                      "id": 14224,
                      "code": "14224",
                      "oldCode": "14224",
                      "nepaliName": "शुल्क",
                      "englishName": "शुल्क",
                      "description": "शुल्क",
                      "nepaliDescription": "शुल्क",
                      "preRevenueHeadId": 0,
                      "status": true,
                      "federal": true,
                      "state": true,
                      "local": true,
                      "remarks": "xxxxx"
                  },
                  "remarks": "remarks",
                  "description": "Production",
                  "currency": {
                      "currencyId": 524,
                      "currencyCode": "524",
                      "descEnglish": "NRS",
                      "descNepali": "NRS"
                  },
                  "amount": 14000,
                  "taxAdv": false,
                  "taxyearId": 2074,
                  "dueAmount": 14000,
                  "createdBy": "psctest",
                  "createdOn": 1531894162000
              }
          ]
      },
      "message": "Voucher has saved sucessfully.",
      "token": "xxxxxxxxxxxxxxxxxxxx",
      "status": 0
  }
  </code></pre>
  
  <p>this response for me contains too many unnecessary information too. i need to get  epbNo, token, pan in some separate variable. how can i achieve it ? </p>