JSONDecoder
let content = try? JSONDecoder().decode(Root.self , from: data)
print(content)
// MARK: - Empty
struct Root: Codable {
let info: [Info]
}
// MARK: - Info
struct Info: Codable {
let memoID, memoName: String
}
SwiftyJson
if let res = arr["info"].array { // arr is of type JSON
print(res)
}