Skip to content

Instantly share code, notes, and snippets.

@nurtugan
Created May 29, 2020 05:34
Show Gist options
  • Save nurtugan/8f8dbbd48e20a50c8429f497e6e9b6db to your computer and use it in GitHub Desktop.
Save nurtugan/8f8dbbd48e20a50c8429f497e6e9b6db to your computer and use it in GitHub Desktop.
Pretty Print Swift Dictionary
print(String(data: try! JSONSerialization.data(withJSONObject: json, options: .prettyPrinted), encoding: .utf8 )!)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment