✅ How to deal with different JSON types
I have an API endpoint and depending on the query it can return a list of objects or an object as such:
Query for multiple
Query for single
For now I'm only allowing queries for multiple but would like to support both.
Is there a way to support this?
Query for multiple
Query for single
For now I'm only allowing queries for multiple but would like to support both.
Is there a way to support this?