How to store an array in the dictionary in Swift?
Suppose we have JSON data received from API. Usually, we are storing in array and dictionaries, we will see how to store array in the dictionary for the sake of arranging data in the form of instance or model. Array in Swift: The array is nothing but a collection of similar types of elements. which we can access by the index. In one array we can store multiple students’ names but in the same array, we can’t store students’ student id. for storing student id we have to take another array. For example : Student Names Array data will be …