I had problem with SwiftyJSON and I don't really understand their documentation.
I did
let jsonArray = JSON(jsonData)
let json = jsonArray["Data"]
(edit)How do i get all the the "names" by using loop(just the names not what is inside the names)? like I want to print out every set one by one.
{ "Data": { "Jenn": { "Id": "21227", "DOB": "1/1/1989" },
"Kenny": { "Id": "20909", "DOB": "1/10/1989" },
"Lisa": { "Id": "28223", "DOB": "11/1/1980" },
"John": { "Id": "29462", "DOB": "2/7/1991" },
"Emma": { "Id": "3744", "DOB": "10/7/2000" },
"David": { "Id": "3748", "DOB": "4/9/1980" },
"Tim": { "Id": "1182", "DOB": "5/5/1999" },
"Joan": { "Id": "7605", "DOB": "6/12/1995" },
"Jack": { "Id": "3808", "DOB": "3/20/1990" }
}
}
I'm sorry if it looks confusing. Thank you!!