How can I get NSJSONSerialization to be recognized in macruby?
framework 'foundation'
puts NSXMLDocument
#=> NSXMLDocument
puts NSJSONSerialization
#=> /Users/home/Desktop/Dropbox/script.rb:3:in `<main>':
uninitialized constant NSJSONSerialization (NameError)
also
$ macruby -v
MacRuby 0.12 (ruby 1.9.2) [universal-darwin10.0, x86_64]
Actually, I feel like a dunce, this fails because I was running on Snow Leopard. NSJSONSerialization isn't supported until 10.7.
I'll leave this question up for anyone else who stubbles across the same thing.