I have a selfish clarifying question. Ultimately, the answer to my question is probably "my code should be more forgiving", but I can't help but ask.
Are there any sort of guarantees — implied or otherwise — that data will have a minimum of fields, like, id
?
As I sit here right now, if you load Ted Lasso Season 2 (API URL: https://api.themoviedb.org/3/tv/97546/season/2 ) returns the following crew member:
{
"job": "Second Assistant Director",
"department": "Directing",
"person_id": "5c932a84c3a36861abe32a17",
"credit_id": "61582e858e2ba6008be0742c"
}
This is episodes[8].crew[17]
. It doesn't even have an id
. Which, coincidentally, my JSON parsing code considers table stakes.
Is this… expected? I feel like this should be filtered out and/or rejected on the API level, but I'll be the first to admit it's completely self-centered for me to say so.
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?