Skip to content

Instantly share code, notes, and snippets.

@pj4533
Created May 22, 2018 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pj4533/47ae8a75453c59944796055f3ce9314f to your computer and use it in GitHub Desktop.
Save pj4533/47ae8a75453c59944796055f3ce9314f to your computer and use it in GitHub Desktop.
lldb JSON helpers
command regex jo 's/(.+)/po print(String(data: try! JSONSerialization.data(withJSONObject: %1, options: .prettyPrinted), encoding: .utf8 )!)/'
command regex jobj 's/(.+)/po [[NSString alloc] initWithData:[NSJSONSerialization dataWithJSONObject:%1 options:nil error:nil] encoding:nil]/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment