You can implement it with .map and Object.keys()

const result = data.map(item => Object.keys(item)[0]);

console.log(result);   // ['name1', 'name2']

If you want to perform that method to your http call. You can do so by:

this.http
    .get(this.URL1)
    .pipe(map(res => res.map(item => Object.keys(item)[0])))
    .subscribe((res: Response) => {...});
Answer from KShewengger on Stack Overflow
🌐
StackBlitz
stackblitz.com › edit › angular-json-loop
Angular Json Loop - StackBlitz
Starter project for Angular apps that exports to the Angular CLI
Discussions

How to iterate to an array of json objects within the template using *ngFor directive
Hello guys, I’m new to ionic and I need some help, basically I got my data from the provider as in the following example: Json data: data: { “error”: false, “usrMessage”: “some message”, “internalMessage”: “some inte… More on forum.ionicframework.com
🌐 forum.ionicframework.com
1
0
January 7, 2018
angularjs - Is there a better way to iterate over this JSON data structure? - Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most · Connect and share knowledge within a single location that is structured and easy to search More on stackoverflow.com
🌐 stackoverflow.com
How to Iterate over angular json object
I have created a nodejs application that will read all the databases in my mongo Db. Which i am able to do in the console. However, when i try too get the data parsed to a json object and dispaly i... More on stackoverflow.com
🌐 stackoverflow.com
Problem iterating through JSON in Angular
In an Angular project I am working in I am trying to iterate through some JSON located in my project. The Angular project compiles but I keep getting the dreaded: ERROR Error: Cannot find a differ More on stackoverflow.com
🌐 stackoverflow.com
🌐
IQCode
iqcode.com › code › javascript › angular-8-how-to-iterate-json-object-in-view
angular 8 how to iterate json object in view Code Example
<div *ngFor="let item of object | keyvalue"> {{item.key}}:{{item.value}} </div>
🌐
GeeksforGeeks
geeksforgeeks.org › angularjs › how-to-loop-through-array-of-json-object-with-ngfor-in-angular
How to Loop through array of JSON object with *ngFor in Angular ? - GeeksforGeeks
July 23, 2025 - Example 2: In this example, we will use the function Object.Keys() and get the values of the keys and then iterate over them. ... <!-- app.component.html --> <h2 style="color: green">GeeksforGeeks</h2> <h2> Loop through array of JSON object ...
🌐
Ionic Framework
forum.ionicframework.com › ionic framework › ionic-v3
How to iterate to an array of json objects within the template using *ngFor directive - ionic-v3 - Ionic Forum
January 7, 2018 - Hello guys, I’m new to ionic and I need some help, basically I got my data from the provider as in the following example: Json data: data: { “error”: false, “usrMessage”: “some message”, “internalMessage”: “some internal message”, “additionalInfos”: { “key1”: 9, “key2”: “802.70”, “key3”: 1, “key4”: “151.50”, “key5”: 8, “key6”: “651.20” }, “reqDate”: “2018-01-07 18:45:27”, “data”: [ { “dataKey1”: “111”, “dataKey2”: “aaa”, “dataKey3”: “bbb”, “dataKey4”: “ccc”, “dataKey5”: “ddd”...
🌐
GeeksforGeeks
geeksforgeeks.org › angularjs › how-to-iterate-over-json-object-fetched-from-api-in-angular
How to iterate over JSON object fetched from API in Angular ? - GeeksforGeeks
July 23, 2025 - // app.module.ts import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { HttpClientModule } from '@angular/common/http'; import { AppComponent } from './app.component'; @NgModule({ declarations: [ AppComponent ], imports: [ BrowserModule, HttpClientModule ], providers: [], bootstrap: [AppComponent] }) export class AppModule { } ... Example 2: In this example, we will fetch many objects from API, & iterate over them, and display them in HTML.
🌐
YouTube
youtube.com › how to make tut's
How to Iterate or Loop over JSON Object using AngularJS - YouTube
In this video you will going to learn how to iterate or loop over a JSON object or array using angularJS directive ng-repeat. Support us on Patreon: https://...
Published   March 28, 2017
Views   3K
🌐
Statutree
statutree.in › azure-vpn-tiptm › how-to-iterate-json-object-in-angular-8.html
How to iterate json object in angular 8
Unfortunately, Angular does not offer a way to decode JWT tokens out-of-the-box but we can use an open-source library. keys(object1));. Problem: I have below Using Angular forEach() with an Object. We’ve seen how to subscribe to the RxJS Observable returned by the get() method and how to use the *ngFor directive to iterate over fetched data in the template. The Backend will be running on Node. io . We are going to create an auth service file to create the login authentication service with Angular 8/9 and Firebase. , we have a variable which holds JSON data, and on page load, we bind that JSON data to create dynamic HTML Table in AngularJs.
Find elsewhere
🌐
Stack Overflow
stackoverflow.com › questions › 38867343 › is-there-a-better-way-to-iterate-over-this-json-data-structure
angularjs - Is there a better way to iterate over this JSON data structure? - Stack Overflow
angular.forEach(article, function(versions, value) {//versions is the array containing version for each article var checkfirst=0; angular.forEach(versions, function(version, value) {//version is the version of an article checkfirst++; if (checkfirst == 1 && version.moment == moment && version.situation == situation) { //do something; return; } }) }) }) }
🌐
Quora
quora.com › How-do-I-iterate-data-from-form-validation-using-JSON-in-AngularJS
How to iterate data from form validation using JSON in AngularJS - Quora
Answer: To iterate data from form validation using JSON in AngularJS, you can use the [code ]ng-repeat[/code] directive to loop over the data in the JSON object and display it in the HTML template.
🌐
Quora
quora.com › What-is-the-best-way-to-loop-a-JSON-array-in-AngularJS-or-JavaScript
What is the best way to loop a JSON array in AngularJS or JavaScript? - Quora
If you have a defined model and require data binding while looping through the json use angular foreach. https://docs.angularjs.org/api/ng/function/angular.forEach . Even though the same can be achieved using st...
🌐
Stack Overflow
stackoverflow.com › questions › 39277758 › using-angular-to-iterate-through-a-json-and-get-the-result
Using Angular to iterate through a JSON and get the result
angularjs · json · Share · Improve ... count more) Date modified (newest first) Date created (oldest first) 0 · You can use the Object.keys(object).foreach() syntax to iterate through each key of the object and check if the ...
🌐
Stack Overflow
stackoverflow.com › questions › 48698895 › how-to-iterate-json-data-using-ng-repeat-in-angularjs
how to iterate json data using ng-repeat in angularjs - Stack Overflow
The JSON itself has nesting, so how do you want to show the nested win-loss data, etc? The answer I have given is a general guideline; you have to tweak it to make it work. In any case, this link will also help you: stackoverflow.com/questions/28282419/… ... var arrayObject = [ "CSS Corp":{ "COE":{"win_loss":[6,4]}, "YNOS":{"win_loss":[5,5]}, "ESTEE":{"win_loss":[10,0]}, "ELC":{"win_loss":[8,2]} }, "SSSPL":{ "PEG":{"win_loss":[0,10]}, "ARUBA":{"win_loss":[2,8]}, "SALES":{"win_loss":[1,9]}, "MARKETING":{"win_loss":[7,3]} } ];
🌐
www.code-helper.com
code-helper.com › answers › angular-8-how-to-iterate-json-object-in-view
Angular 8 how to iterate json object in view
firebase iterate object · how to get ip address in angular 8 · how to create monorapo project in angular 8 · how to add element in json object · how to convert normal object to json object in javascript · how to iterate through a js object · angular 8 tutorial ·