@JeremyLT@bbsmooth I was trying to simplify my problem but I got confused, So here is the actual problem :
I’m trying to use the breaking bad API, I want to get episodes by season, the API doesn’t provide that option, So I want to get all seasons that has the same value
The API returns an array, but when I check its type, it prints “Object” and that made me confused, Here’s my code
That API call is returning an array of objects. Just put https://www.breakingbadapi.com/api/episodes into your browser’s address bar and it will show you exactly what you are getting. So you would iterate through it like any other array.
It’s an array, so any method for looping over an array would work. Then you can access the object properties of each array entry like you would any other object.