You can use a service like quicktype to create Codable classes. As a starting point you should read more about the Codable Protocol
You can use the following code to parse this JSON:
import Foundation
// MARK: - Root
struct Root: Codable {
let status: Int
let data: [Datum]
let message: String
}
// MARK: - Datum
struct Datum: Codable {
let month: String
let jobs: [Job]
}
// MARK: - Job
struct Job: Codable {
let jobID: Int
let jobTitle, jobDesc, jobDate, jobVenue: String
let jobAccept: String
enum CodingKeys: String, CodingKey {
case jobID = "jobId"
case jobTitle, jobDesc, jobDate, jobVenue, jobAccept
}
}
You can use this code to convert the JSON to an object:
let root= try? JSONDecoder().decode(Root.self, from: jsonData)