[MacRuby] #1310: JSON.parse fails with NSString

MacRuby ruby-noreply at macosforge.org
Mon May 30 03:54:28 PDT 2011


#1310: JSON.parse fails with NSString
-----------------------------------+----------------------------------------
 Reporter:  isaackearse@…          |       Owner:  lsansonetti@…        
     Type:  defect                 |      Status:  new                  
 Priority:  blocker                |   Milestone:  MacRuby 0.11         
Component:  MacRuby                |    Keywords:                       
-----------------------------------+----------------------------------------
 {{{
 macirb --simple-prompt
 >> require 'json'
 => true
 >> JSON.parse '{}'
 => {}
 >> JSON.parse NSString.stringWithString '{}'
 NoMethodError: undefined method `encode' for "{}":String

 >> JSON.parse String NSString.stringWithString '{}'
 => {}
 >>
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1310>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list