Resolved: Get an [String] link from a json file

In this post, we will see how to resolve Get an [String] link from a json file

Question:

Here is my structure for the json file
JSON file url
This is my class for JSON requests and decoding I use these functions to get an array of links
I hope I wrote correctly what I want to receive, and if there are any questions, please contact me
I can’t through index [String] to get each element

Best Answer:

use this code to access the data elements of an array:
Read the very basics of Swift, specially regarding arrays here:
https://docs.swift.org/swift-book/LanguageGuide/CollectionTypes.html

If you have better answer, please add a comment about this, thank you!

Source: Stackoverflow.com