10
Chuyển đổi từ điển sang JSON trong Swift
Tôi đã tạo từ điển tiếp theo: var postJSON = [ids[0]:answersArray[0], ids[1]:answersArray[1], ids[2]:answersArray[2]] as Dictionary va tôi lây: [2: B, 1: A, 3: C] Vậy, làm thế nào tôi có thể chuyển đổi nó thành JSON?
188
json
swift
serialization