title: how can i send 2 object in angular2 post request
body: <p>I have this code:</p>
  
  <p>client side (angular2)</p>
  
  <pre><code>     saveConfig(configType: ConfigTypes, gasConfigModel: GasConfigModel): any {
          console.info("sending post request");
          let headers = new Headers({
            'Content-Type': 'application/json'
          });
  
  ....
  
          return this.http
            .post(this.url, formParamString, ??, {headers: headers})
            .map(res =&gt; res.json())
            .subscribe(
              data =&gt; {
                console.info("next: ");
                console.info(data)
              },
              err =&gt; console.error(err)
            );
        }
  </code></pre>
  
  <p>and</p>
  
  <p>server side:</p>
  
  <pre><code>@Path("/SaveConfig")
  @POST
  @Consumes(MediaType.APPLICATION_JSON + ";charset=utf-8")
  @Produces(MediaType.APPLICATION_JSON + ";charset=utf-8")
  public void saveConfig(MyObj my object, CountryGasStationConfig countryGasStationConfig) throws Exception {....}
  </code></pre>
  
  <p>I know how to send one object in post, but how can i send 2 object in post request?</p>