I want to use array as a parameter of get method of Angular. I use codes like below.
import { Http } from '@angular/http';
constructor(private http: Http) {}
this.http.get('http://localhost:5000/test',{
params: {user}
})
user is defined as {id: number=101, name: string='john'}
and I expect to generate URL
http://localhost:5000/test?id=101&name=john
However, generated URL is
http://localhost:5000/test?user=%7B%id%22:%22YV1AMbiy%22,%22name%22:%22345678%22