Closed OptimusKoala closed 8 years ago
I've found my answer, I use SwiftyJSON and this code.
func userSelectHandler() {
socket.on("select") {data, ack in
let jsonData = JSON(data)
print(jsonData[0]["email"].stringValue)
}
}
How can I use the "data" object into handler to get values into String ?
Part of my code. The print return many values like : "id = 4, gender = male, ..."
I've tried to use the data object like an array but it fails.