Is there a way to pretty print Swift dictionaries to the console?

po solution

For those of you want to see Dictionary as JSON without escape sequence in console, here is a simple way to do that:

(lldb) p print(String(data: try! JSONSerialization.data(withJSONObject: object, options: .prettyPrinted), encoding: .utf8)!)

Update

Check out this answer too.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)