How do I decode URL Encoding (RFC 3986) inside the list?

Hello there
I am trying to create triva app from opentdb API and using the link
https://opentdb.com/api.php?amount=20&difficulty=hard&type=multiple&encode=url3986

I have decode question from uridecode text code block but I am unable to uridecode text from answers
Can you guys help ..
I have attached screenshots below



  1. Why use that parameter? &encode=url3986 Remove it and most of your issues go away.
  2. You are still left with the html entities: e.g. " or ', if you display the output in a label with HTMLformat, these also go away, otherwise you will need to do some text substitution.

image

The encoding is requirement for my task
I have done the question part but problem with answers as I am saving it in a list

and that task is ?

Seems like you are making a rod for your own back

Nah it's my assignment requirement I don't know why they set up like that

I have done with the correct answer as it got only one value.. do you know how to split incorrect answers with ,

Do the same as you did for the correct answer. If the incorrect answers are in a list, you can iterate over the list with the decode block

I try to put the decoded value it says

However I tried to create a seperate list for incorrect answers with decode it works but values are treated as whole that means there is only one value for incorrect answers decoded .. Any ideas to split them?

Other ideas. Not finished.
Questions.aia (4.7 KB)

If file is there can solve the issue.

Somwthing like this??


Json Response is

[[["category", "Science%20%26%20Nature"], ["correct_answer", "Dihydrogen%20Monoxide"], ["difficulty", "hard"], ["incorrect_answers", ["Ammonium%20chloride", "Anhydrous%20Sodium%20Carbonate", "Manganese%20dioxide"]], ["question", "Which%20is%20the%20chemical%20name%20of%20H2O%3F"], ["type", "multiple"]], [["category", "Entertainment%3A%20Video%20Games"], ["correct_answer", "Dirk%20the%20Daring"], ["difficulty", "hard"], ["incorrect_answers", ["Arthur", "Sir%20Toby%20Belch", "Guy%20of%20Gisbourne"]], ["question", "What%20was%20the%20name%20of%20the%20hero%20in%20the%2080s%20animated%20video%20game%20%27Dragon%27s%20Lair%27%3F"], ["type", "multiple"]], [["category", "Geography"], ["correct_answer", "Barbados"], ["difficulty", "hard"], ["incorrect_answers", ["Fiji", "Maldives", "Seychelles"]], ["question", "Which%20of%20these%20island%20countries%20is%20located%20in%20the%20Caribbean%3F"], ["type", "multiple"]], [["category", "Science%20%26%20Nature"], ["correct_answer", "C6H12O6"], ["difficulty", "hard"], ["incorrect_answers", ["C2H4O2", "K%2B", "CH4"]], ["question", "What%20is%20the%20molecular%20formula%20of%20Glucose%3F"], ["type", "multiple"]], [["category", "Entertainment%3A%20Video%20Games"], ["correct_answer", "Tennis%20for%20Two"], ["difficulty", "hard"], ["incorrect_answers", ["Spacewar%21", "Pong", "Space%20Travel"]], ["question", "What%20was%20the%20world%27s%20first%20video%20game%3F"], ["type", "multiple"]], [["category", "Entertainment%3A%20Board%20Games"], ["correct_answer", "Senet"], ["difficulty", "hard"], ["incorrect_answers", ["Chess", "Checkers", "Go"]], ["question", "What%20is%20the%20world%27s%20oldest%20board%20game%3F"], ["type", "multiple"]], [["category", "Entertainment%3A%20Books"], ["correct_answer", "Albus%20Percival%20Wulfric%20Brian%20Dumbledore"], ["difficulty", "hard"], ["incorrect_answers", ["Albus%20Valum%20Jetta%20Mobius%20Dumbledore", "Albus%20James%20Lunae%20Otto%20Dumbledore", "Albus%20Valencium%20Horatio%20Kul%20Dumbledore"]], ["question", "In%20the%20%22Harry%20Potter%22%20series%2C%20what%20is%20Headmaster%20Dumbledore%27s%20full%20name%3F"], ["type", "multiple"]], [["category", "Entertainment%3A%20Music"], ["correct_answer", "Lisa%20Frank%20420%20%2F%20Modern%20Computing"], ["difficulty", "hard"], ["incorrect_answers", ["Smoke%20Weed%20420%20%2F%20Everyday", "Make%20Your%20Move%20420%20%2F%20My%20Mind", "It%27s%20All%20In%20Your%20Head%20420%20%2F%20Understand"]], ["question", "What%20is%20the%20English%20title%20of%20the%20vaporwave%20track%20%22%E3%83%AA%E3%82%B5%E3%83%95%E3%83%A9%E3%83%B3%E3%82%AF420%20%2F%20%E7%8F%BE%E4%BB%A3%E3%81%AE%E3%82%B3%E3%83%B3%E3%83%94%E3%83%A5%E3%83%BC%22%20by%20Macintosh%20Plus%20%28Vektroid%29%3F"], ["type", "multiple"]], [["category", "Entertainment%3A%20Comics"], ["correct_answer", "October%2025th%2C%202014"], ["difficulty", "hard"], ["incorrect_answers", ["April%2013th%2C%202009", "April%208th%2C%202012", "August%2028th%2C%202003"]], ["question", "In%20what%20Homestuck%20Update%20was%20%5BS%5D%20Game%20Over%20released%3F"], ["type", "multiple"]], [["category", "Entertainment%3A%20Video%20Games"], ["correct_answer", "Sour%20Appletini"], ["difficulty", "hard"], ["incorrect_answers", ["Fringe%20Weaver", "Piano%20Man", "Bad%20Touch"]], ["question", "Which%20of%20these%20is%20NOT%20a%20possible%20drink%20to%20be%20made%20in%20the%20game%20%22VA-11%20HALL-A%3A%20Cyberpunk%20Bartender%20Action%22%3F"], ["type", "multiple"]], [["category", "Science%3A%20Gadgets"], ["correct_answer", "80%20Hz"], ["difficulty", "hard"], ["incorrect_answers", ["70%20Hz", "90%20Hz", "100%20Hz"]], ["question", "Which%20of%20the%20following%20is%20the%20standard%20THX%20subwoofer%20crossover%20frequency%3F"], ["type", "multiple"]], [["category", "Entertainment%3A%20Video%20Games"], ["correct_answer", "Shin%20Kuroi"], ["difficulty", "hard"], ["incorrect_answers", ["Kouya%20Aotsuki", "Soutarou%20Touno", "Torahiko%20Ooshima"]], ["question", "Which%20character%2C%20in%20the%20game%20%22Morenatsu%22%2C%20has%20the%20most%20possible%20endings%20to%20their%20route%2C%20at%20a%20total%20of%20four%20different%20endings%3F"], ["type", "multiple"]], [["category", "Entertainment%3A%20Music"], ["correct_answer", "Too%20Weird%20To%20Live%2C%20Too%20Rare%20To%20Die%21"], ["difficulty", "hard"], ["incorrect_answers", ["A%20Fever%20You%20Can%27t%20Sweat%20Out", "Death%20Of%20A%20Bachelor", "Vices%20%26%20Virtues"]], ["question", "%22All%20the%20Boys%22%20by%20Panic%21%20At%20the%20Disco%20was%20released%20as%20a%20bonus%20track%20on%20what%20album%3F"], ["type", "multiple"]], [["category", "Entertainment%3A%20Japanese%20Anime%20%26%20Manga"], ["correct_answer", "Edward%20%22Whitebeard%22%20Newgate"], ["difficulty", "hard"], ["incorrect_answers", ["Former%20Marine%20Fleet%20Admiral%20Sengoku", "Pirate%20King%20Gol%20D%20Roger", "Silvers%20Rayleigh"]], ["question", "In%20%22One%20Piece%22%2C%20who%20confirms%20the%20existence%20of%20the%20legendary%20treasure%2C%20One%20Piece%3F"], ["type", "multiple"]], [["category", "Entertainment%3A%20Video%20Games"], ["correct_answer", "Raise%20Hell"], ["difficulty", "hard"], ["incorrect_answers", ["Freedom", "Skewer%20the%20Winged%20Beast", "Ascend%20from%20Darkness"]], ["question", "In%20the%20%22Little%20Lost%20Girl%22%20Easter%20Egg%20in%20Call%20of%20Duty%3A%20Black%20Ops%20II%2C%20what%27s%20the%20last%20step%20required%20for%20the%20achievement%3F"], ["type", "multiple"]], [["category", "Entertainment%3A%20Japanese%20Anime%20%26%20Manga"], ["correct_answer", "Raditz"], ["difficulty", "hard"], ["incorrect_answers", ["Gohan", "Vegeta", "Bardock"]], ["question", "In%20the%20%22Dragon%20Ball%22%20franchise%2C%20what%20is%20the%20name%20of%20Goku%27s%20brother%3F"], ["type", "multiple"]], [["category", "Entertainment%3A%20Video%20Games"], ["correct_answer", "Bloodstar"], ["difficulty", "hard"], ["incorrect_answers", ["Sachs", "Dracuul", "Alucard"]], ["question", "What%20is%20the%20default%20name%20of%20the%20Vampire%20character%20in%20%22Shining%20Soul%202%22."], ["type", "multiple"]], [["category", "History"], ["correct_answer", "March%2025th"], ["difficulty", "hard"], ["incorrect_answers", ["June%201st", "September%2025th", "December%201st"]], ["question", "Before%20the%20American%20colonies%20switched%20to%20the%20Gregorian%20calendar%20in%201752%2C%20on%20what%20date%20did%20their%20new%20year%20start%3F"], ["type", "multiple"]], [["category", "Entertainment%3A%20Video%20Games"], ["correct_answer", "Master%20Yen%20Sid"], ["difficulty", "hard"], ["incorrect_answers", ["Sephiroth", "Julius", "Kurt%20Zisa"]], ["question", "In%20the%20Kingdom%20Hearts%20series%2C%20which%20is%20not%20an%20optional%20boss%20you%20can%20fight%3F"], ["type", "multiple"]], [["category", "History"], ["correct_answer", "Charles%20Guiteau"], ["difficulty", "hard"], ["incorrect_answers", ["Sirhan%20Sirhan", "Leon%20Czolgosz", "John%20Wilkes%20Booth"]], ["question", "Who%20assassinated%20President%20James%20A.%20Garfield%3F"], ["type", "multiple"]]]

Another view

test the aia
Button.aia (9.3 KB)