title: Get JSON object from URL
body: <p>I have a URL that returns a JSON object like this:</p>
  <pre><code>{
      &quot;expires_in&quot;:5180976,
      &quot;access_token&quot;:&quot;AQXzQgKTpTSjs-qiBh30aMgm3_Kb53oIf-VA733BpAogVE5jpz3jujU65WJ1XXSvVm1xr2LslGLLCWTNV5Kd_8J1YUx26axkt1E-vsOdvUAgMFH1VJwtclAXdaxRxk5UtmCWeISB6rx6NtvDt7yohnaarpBJjHWMsWYtpNn6nD87n0syud0&quot;
  } 
  </code></pre>
  <p>I want to get JSON object from the URL and then the <code>access_token</code> value.</p>
  <p>So how can I retrieve it through PHP?</p>