data = {
"ImageDetails": [
{
"application": "unknownApp,
"count": 107757,
},
{
"application": "app6",
"count": 1900,
},
{
"application": "app8",
"count": 0,
},
{
"application": "app3",
"count": 100,
},
{
"application": "app9"
"count": 0,
},
{
"application": "app1"
"count": 0,
},
{
"application": "app10"
"count": 0,
},
{
"application": "app7",
"count": 0,
}
]
}
Upon subscribing to the API, the data retrieved is shown above.
The desired output should display the top 5 applications based on the count property in the ImageDetails section. Expected Output: [unknownApp, app6, app3, app8, app9]