Skip to content

Instantly share code, notes, and snippets.

@mikeash
Created March 19, 2014 18:18
Show Gist options
  • Save mikeash/9647913 to your computer and use it in GitHub Desktop.
Save mikeash/9647913 to your computer and use it in GitHub Desktop.
>>> from Foundation import *
>>> NSJSONSerialization
<objective-c class NSJSONSerialization at 0x7fff759b0c88>
>>> NSJSONSerialization.JSONObjectWithData_options_error_(NSData.data(), 0, None)
>>> stream = NSInputStream.inputStreamWithData_(NSData.data())
>>> stream.open()
>>> NSJSONSerialization.JSONObjectWithStream_options_error_(stream, 0, None)
...and here it just hangs forever...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment