Created
May 22, 2018 12:47
-
-
Save pj4533/47ae8a75453c59944796055f3ce9314f to your computer and use it in GitHub Desktop.
lldb JSON helpers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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