Angular 2 - Http Get request - pass json Object : <p>How can I do a http get request and pass an json Object</p>

<p>This is my json-Object</p>

<pre><code>{{firstname:"Peter", lastname:"Test"}
</code></pre>

<p>and this Object I want to pass in the http request to get a list Of matched persons.</p>

<p>how is it possible? This example just shows a simple get request with  a json result. How do I have to modify it?</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>//Component:

person:Person;
persons:Person [];
....
//Whre can I pass the person, here in the service??
getMatchedPersons(){
  this.httpService.getMatchedPersons().subscribe(
     data =&gt;  this.persons = data,
    error =&gt; aller(error)
    );
 ); 
  

  //SERVICE
  //pass parameters?? how to send the person object here?
  getMatchedPersons(){
    return this.http.get('url').map(res =&gt; res.json());
  }</code></pre>
</div>
</div>
</p>
