I need to extract the ServiceProvider number from a REST call response and use it in my code. This is the current output of the call:
{"mitId": 18,
"ServiceProvider": "2"}
This is my current function:
GetServiceProviderId() {
var spid = this.http.get<Info>(this.rooturl + 'info', { headers: this.reqHeader})
return spid;
}
How can I specifically retrieve only the ServiceProvideNumber, which is "2", for use in another call?