I get String from api response and stored in an array.
for customParams in custom_attributes! { if(customParams[\"attribute_code\"] as! String == \
var myArray :[String] = [] for customParams in custom_attributes! { if(customParams["attribute_code"] as! String == "small_image") { var myString = customParams["value"] as! String myArray.append(myString) } }