Given this simplified scenario:
export class LoginComponent{
grant_type: string="password";
jsonPayload: string;
Login(username, password){
this.jsonPayload = JSON.stringify(username, password, this.grant_type);
}
}
It looks like stringify is confused by TypeScript's "this". So, how do I make well-formed JSON, here?
Thanks,