I'm using ng-repeat to iterate through a JSON object based on its keys. I've successfully limited the number of iterations to 5 by using ng-repeat="item in array|limitTo:5" for an array object.
However, when I attempt to limit the key repetitions with ng-repeat="key in json|limitTo: 5", it doesn't work. What steps should I take to solve this issue?