I am parsing a web api response which is an array of dictionaries. Each dictionary in turn has a nested array of dictionaries. How do i parse it? Pl provide with some code s
Objectmapper handles nested objects as long as they conform to Mappable:
import UIKit
import ObjectMapper
class ReturnModel: Mappable
{
var FilingStatusId : Int = 0
var FormName : String = ""
var OrderId : String = ""
var RecipientList:[RecipientModel] = []
required init?(map: Map) {
}
func mapping(map: Map)
{
FilingStatusId <- map["FilingStatusId"]
FormName <- map["FormName"]
OrderId <- map["OrderId"]
RecipientList <- map["RecipientList"]
}
}