Hey! This json returning list thing is tricky, but here’s a thought: maybe the API is designed to always return a list, even if there’s only one item. Some APIs do that for consistency. Check the docs again—look for phrases like “always returns an array” or “list of objects.”
If that’s the case, yeah, grabbing the first item is fine, but document it in your code so others know why you’re doing it.
If that’s the case, yeah, grabbing the first item is fine, but document it in your code so others know why you’re doing it.
