Yo, I feel your pain. json returning list when you expect a single object is super annoying. First, make sure you’re not accidentally hitting a collection endpoint instead of a resource endpoint. That’s a common mistake.
If the API is supposed to return a single object, maybe there’s a bug on their side. Try reaching out to their support or checking their GitHub issues page. In the meantime, yeah, grabbing the first item is a temp fix, but I wouldn’t rely on it long-term.
If the API is supposed to return a single object, maybe there’s a bug on their side. Try reaching out to their support or checking their GitHub issues page. In the meantime, yeah, grabbing the first item is a temp fix, but I wouldn’t rely on it long-term.
