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