Re: [MacRuby] #1007: “EXC_BAD_ACCESS” when trying to generate Json

MacRuby ruby-noreply at macosforge.org
Tue Nov 23 11:03:28 PST 2010


#1007: “EXC_BAD_ACCESS” when trying to generate Json
---------------------------------------+------------------------------------
 Reporter:  josh.kalderimis@…          |        Owner:  lsansonetti@…        
     Type:  defect                     |       Status:  closed               
 Priority:  minor                      |    Milestone:                       
Component:  MacRuby                    |   Resolution:  invalid              
 Keywords:                             |  
---------------------------------------+------------------------------------
Changes (by mattaimonetti@…):

  * status:  new => closed
  * resolution:  => invalid


Comment:

 Thanks for the bug report.
 I just tried with a recent version of trunk and got the following:


 {{{
 SON.parse File.read(File.expand_path('~/Desktop/json_issue.txt'))
 JSON::ParseError: lexical error: invalid char in json text.
                    [{"drmVersionNumber"=>0, "itemId"=>318926433, "soft
                      (right here) ------^



 }}}

 Then I looked at the file and realized it was really not a json file.
 You can check with http://www.jsonlint.com/  but your file looks like an
 inspected version of a Ruby object.

 I'm closing this ticket since 1) I can't reproduce the EXC_BAD_ACCESS
 error on trunk and 2) the file isn't a valid json file.

 If I missed your point, please feel free to reopen this ticket or provide
 more information.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1007#comment:1>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list