title: how to get json object in laravel controller
body: <p>I'm performing and API that receive json object, but cannot read it. Actually I don't know if it should be received as Request, or how...</p>
  
  <p>First I try to get the json and decode it to an array. After that, I return the same array to json in the response. But it's returned as empty ({})</p>
  
  <p>That's my route</p>
  
  <pre><code>Route::post('enviar_encuestas', 'EncuestaUsuarioController@store');
  </code></pre>
  
  <p>And in my controller, for that method I perform the following</p>
  
  <pre><code>public function store(Request $request){
      $users = json_decode($request);
      return response()-&gt;json($users);
  }
  </code></pre>
  
  <p>In Postman I send perform the following
  HTTP POST Request to</p>
  
  <pre><code>https://encuestasapi.informixsys.com.ar/public/enviar_encuestas
  </code></pre>
  
  <p>I select Body and raw, after that I select JSON(application/json)
  and write the following</p>
  
  <pre><code>{
          "id_encuesta" : 1,
          "email" : "asd@hotmail.com",
          "razon_social" : "asd",
          "nro_ref_autopack" : 1
  }
  </code></pre>