The better way to deal with JSON data in Swift