I recently started using Postman to develop some test cases.
Many of the responses I receive with the get
method contain large arrays with numerous objects (I have simplified them here for readability, but each object actually has over 20 properties).
Currently, I have a script that scans through the entire response to find the correct data and then outputs the results.
Is there a way to make the script stop after a specific number of objects?
[
{
"username": "",
"active": ""
},
{
"username": "",
"active": ""
}
]