#1448: Pointer#to_object causes a segmentation fault --------------------------------+------------------------------------------- Reporter: l.rieder@… | Owner: lsansonetti@… Type: defect | Status: new Priority: critical | Milestone: Component: MacRuby | Keywords: segfault --------------------------------+------------------------------------------- Comment(by eloy.de.enige@…): I think you need: {{{ irb(main):010:0> data = NSJSONSerialization.dataWithJSONObject({:foo => 42}, options: 0, error: nil) => #<NSConcreteData:0x40073fe40> irb(main):011:0> NSString.alloc.initWithData(data, encoding:NSUTF8StringEncoding) => "{\"foo\":42}" }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1448#comment:2> MacRuby <http://macruby.org/>