For testing and debugging I am trying to put the content of Dictionary to a String. But have no clue hows it going to achieve. Is it possible? If yes, how.
Dictionary is
You can just print a dictionary directly without embedding it into a string:
let dict = ["foo": "bar", "answer": "42"]
println(dict)
// [foo: bar, answer: 42]
Or you can embed it in a string like this:
let dict = ["foo": "bar", "answer": "42"]
println("dict has \(dict.count) items: \(dict)")
// dict has 2 items: [foo: bar, answer: 42]