JSON returns an object with the structure {"key":"value"} when it should return an array. The array in question, supposed to contain a number of incorrect answers for answers from the opentrivia database with the format incorrectAnswer: ["dfdf", ""sdsdj], instead returns an object like this when console logged:
{incorrectAnswers: Array(1), correctAnswer: "True"}correctAnswer: "True"incorrectAnswers: ["False"]__proto__: Object...
Here's an API with parameters that should work: "https://opentdb.com/api.php?amount=10&difficulty=hard&type=boolean"
2.1m questions
2.1m answers
60 comments
57.0k users