In my ts file I have function which sends some data and then receives json response
const fd = new FormData();
this.service.uploadImage(fd).subscribe(
(res:any)=>
{
console.log(res) ;
In this way I get the whole json console.logged.
{item1: "abcdefg", item2: "xyz"}
But I want to access each component of json seperately. How can I do that ?
res? Have a look at Angular JsonPipe