Is it possible to retrieve JSON data from the following URL ? Specifically, I am interested in getting information on objects such as "uf", "ivp", and so on to display them in a table or list. The challenge is that this data is not presented in an array format. How can I iterate over these objects?
{
"version": "1.5.0",
"autor": "mindicador.cl",
"fecha": "2018-10-24T17:00:00.000Z",
"uf": {
"codigo": "uf",
"nombre": "Unidad de fomento (UF)",
"unidad_medida": "Pesos",
"fecha": "2018-10-24T04:00:00.000Z",
"valor": 27413.56
},
"ivp": {
"codigo": "ivp",
"nombre": "Indice de valor promedio (IVP)",
"unidad_medida": "Pesos",
"fecha": "2018-10-24T04:00:00.000Z",
"valor": 28523.73
}
}
I want to iterate through each object like "uf", "ivp", etc. Is there a way to achieve this even though it's not in array form?
This is the method for my service:
search(): Observable<Object> {
const queryUrl = this.apiUrl;
return this.http.get(queryUrl);
}