title: Read json data with get method from from php api
body: <p><a href="https://i.stack.imgur.com/zfGkX.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zfGkX.jpg" alt=" advance rest client (get method) "></a></p>
  
  <p>How to read the username and password from server end. If I use POST method instead of GET then I can easily read this by </p>
  
  <pre><code>$REQUEST = file_get_contents('php://input');
  $REQUEST = json_decode($REQUEST, true);
  echo json_encode($REQUEST);
  </code></pre>
  
  <p>this code. and I can get the response 
      {"username": "muradcse1", "password": "1122"}</p>
  
  <p>but what is way to read data of json format if the method is get? I need this format for get method also.</p>
  
  <p>please help.</p>