convert dict to data swift code example Example: convert dictionary to json serialization swift 4 ["A":123, "B":455]