Following your example (Image in your question), you can create an Angular Pipe
import { PipeTransform, Pipe } from '@angular/core';
@Pipe({name: 'ObjKeys'})
export class KeysPipe implements PipeTransform {
transform(value, args:string[]) : any {
return Object.keys(value);
}
}
Imagine this variable following your structure
let object = {
"RAW": {
"ETH": {
"USD": {
"TYPE": 5
}
},
"DASH": {
"USD": {
"TYPE": 5
}
}
}
}
Then in your HTML template
<p *ngFor="let key of object.RAW | ObjKeys">
Type for {{key}}<br>
{{object.RAW[key]["USD"]["TYPE"]}}
</p>
2
solved How to access values in nested JSON