Skip to content

Instantly share code, notes, and snippets.

@KaQuMiQ
Created March 17, 2020 09:58
Show Gist options
  • Save KaQuMiQ/a1a9557acea34878c1c28f82665ee07a to your computer and use it in GitHub Desktop.
Save KaQuMiQ/a1a9557acea34878c1c28f82665ee07a to your computer and use it in GitHub Desktop.
Swift LLDB pretty print json data
e print(String(data: JSONSerialization.data(withJSONObject: JSONSerialization.jsonObject(with: data, options: []), options: .prettyPrinted), encoding: .utf8)!)
@KaQuMiQ
Copy link
Author

KaQuMiQ commented Mar 17, 2020

To use in breakpoint with auto continue i.e. in callback from URLSession

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment