title: How to read Specific value from curl Response
body: <p>this is my response </p>
  
  <p>i need to read first line id value &amp; url of sandbox </p>
  
  <pre><code>{ 
   "id": "chg_g5Y25220190539Ob590811651", 
   "object": "charge",
   "live_mode": false,
   "api_version": "V2",
   "method": "CREATE",
   "status": "INITIATED",
   "amount": 1.000,
   "currency": "KWD",
   "threeDSecure": false,
   "card_threeDSecure": false,
   "save_card": false,
   "statement_descriptor": "Sample",
   "description": "Test DESC",
   "transaction": 
    {
      "timezone": "UTC+03:00",
      "created": "1573191592651",
      "url": "https://sandbox.payments.tap.company/test_gosell/v2/payment/response.aspx?tap_chg=PsV8hZdr78kEIAOZl9XL1B5u3dXe%2bBQ%2b3Hrd%2fempxYs%3d&amp;sess=noWi606EI%2bM%3d&amp;token=PsV8hZdr78kEIAOZl9XL1B5u3dXe%2bBQ%2bTyYdQy9iGpS6aAXwKOqAdw%3d%3d",
      "expiry": { "period": 30, "type": "MINUTE" },
      "asynchronous": false
    },
   "reference": { "transaction": "txn_0001", "order": "ord_0001" },
   "response":  { "code": "100", "message": "Initiated" },
   "receipt":   { "email": true, "sms": true },
   "customer":  { "first_name": "yxy", "last_name": "ttt", "email": "xyx@xyz.com" },
   "source":    { "object": "source", "id": "src_card" },
   "redirect": { "status": "PENDING", "url": "http://localhost:81/School/" },
   "post": { "status": "PENDING", "url": "http://localhost:81/School/" } }
  </code></pre>