Removing ”\” from output

Use debugDescription

let dictString = deviceIdDict.debugDescription
    print(dictString)

It would print

["some": "more"]

You can try dump

print("my dictionary: ")
dump(deviceIdDict)

It’ll be printed like this:

▿ 1 key/value pair
  ▿ (2 elements)
    - key: "some"
    - value: "more"

Leave a Comment