Angular 来自linkedin的JSON api响应

Angular 来自linkedin的JSON api响应,angular,oauth-2.0,linkedin,linkedin-api,Angular,Oauth 2.0,Linkedin,Linkedin Api,使用下面的URL,我从linkedin获得了XML格式的配置文件响应 this.http.get('https://api.linkedin.com/v1/people/~?oauth2_access_token='+token,{headers: headers}) 如何获得JSON格式的响应?我已尝试使用URL,但出现了错误 https://api.linkedin.com/v1/people/~?format=json~?oauth2_access_token= 格式应作为查询参数发送

使用下面的URL,我从linkedin获得了XML格式的配置文件响应

this.http.get('https://api.linkedin.com/v1/people/~?oauth2_access_token='+token,{headers: headers})
如何获得JSON格式的响应?我已尝试使用URL,但出现了错误

https://api.linkedin.com/v1/people/~?format=json~?oauth2_access_token=

格式
应作为查询参数发送:

尝试:

https://api.linkedin.com/v1/people/~?format=json&oauth2_access_token=xxxx