title: How to pass an object to a GET request?
body: <p>Hi I'm currently trying to pass an object to a GET request for search filter in nodejs using express but I get a return of 404 GET /route1/search/[object%20Object] 404 1.148 ms - 38</p>
  
  <p>I already try to log the result in the terminal using console.log(req.params.dataObject); or console.log(req.params.dataObject.option); but get the result of [Object, Object] or Undefined</p>
  
  <pre><code>router.get('/search/:dataObject',
   async function (req, res) {
      try {
        console.log(req.params.dataObject);
        res.status(200).json(searchPhone);
      } catch (err) {
        return res.status(404).json({
          error: err.message
        });
      }
    });
  </code></pre>
  
  <p>I expect the result to be {option: 'some data', keyword: 'some data'}</p>