 $json = '{"request": {"Target":"Affiliate_Offer","Format":"json","Service":"HasOffers","Version":"0","NetworkId":"adattract","Method":"getPayoutDetails","api_key":"bd0e00f000c00b000db00000b0c0b0ab00d000000ab000f00b000bb00000c000","offer_id":"0000"},"response": {"status":0,"httpStatus":000,"data":{"offer_payout": {"payout":"0.00000"}},"errors":[],"errorMessage":null}}';  $mydata = json_decode($json