[MacRuby] #257: Conversion to JSON works , But JSON parsing fails in MacRuby 0.4
#257: Conversion to JSON works , But JSON parsing fails in MacRuby 0.4 ---------------------------+------------------------------------------------ Reporter: nexneo@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: json ---------------------------+------------------------------------------------ Following is on macirb prompt. Same Happens in XCode Project. Let me know if more information is needed and how I can provide that. ( following trace is also available at http://gist.github.com/116577 )
h.to_json => "{\"testing\":\"Hello World\"}" JSON::parse(h.to_json) dyld: lazy symbol binding failed: Symbol not found: _RHASH_TBL Referenced from: /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1 /universal-darwin9.5/json/ext/parser.bundle Expected in: flat namespace
dyld: Symbol not found: _RHASH_TBL Referenced from: /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1 /universal-darwin9.5/json/ext/parser.bundle Expected in: flat namespace Trace/BPT trap -- Ticket URL: <http://www.macruby.org/trac/ticket/257> MacRuby <http://macruby.org/>
I started working on a obj-c based json parser/generator. Can you give it a try and let me know if it works for you? http://github.com/mattetti/macruby-json/tree/master - Matt On Sat, May 23, 2009 at 3:28 AM, MacRuby <ruby-noreply@macosforge.org>wrote:
#257: Conversion to JSON works , But JSON parsing fails in MacRuby 0.4
---------------------------+------------------------------------------------ Reporter: nexneo@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: json
---------------------------+------------------------------------------------ Following is on macirb prompt. Same Happens in XCode Project. Let me know if more information is needed and how I can provide that.
( following trace is also available at http://gist.github.com/116577 )
h.to_json => "{\"testing\":\"Hello World\"}" JSON::parse(h.to_json) dyld: lazy symbol binding failed: Symbol not found: _RHASH_TBL Referenced from: /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1 /universal-darwin9.5/json/ext/parser.bundle Expected in: flat namespace
dyld: Symbol not found: _RHASH_TBL Referenced from: /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.1 /universal-darwin9.5/json/ext/parser.bundle Expected in: flat namespace
Trace/BPT trap
-- Ticket URL: <http://www.macruby.org/trac/ticket/257> MacRuby <http://macruby.org/>
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
#257: Conversion to JSON works , But JSON parsing fails in MacRuby 0.4 ---------------------------+------------------------------------------------ Reporter: nexneo@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: json ---------------------------+------------------------------------------------ Comment(by dj2@…): The attached patch (json.diff) fixes json parsing for me. The portions wrapped in if objc could be extracted into a method but I wasn't sure how close we were trying to keep the code to the original ruby? {{{ titania:trunk dj2$ macirb
a = {:foo => 1, :bar => 2} => {:foo=>1, :bar=>2} require 'json' => true JSON.parse(a.to_json) => {"foo"=>1, "bar"=>2} quit }}}
-- Ticket URL: <http://www.macruby.org/trac/ticket/257#comment:1> MacRuby <http://macruby.org/>
#257: Conversion to JSON works , But JSON parsing fails in MacRuby 0.4 ---------------------------+------------------------------------------------ Reporter: nexneo@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.5 Component: MacRuby | Resolution: fixed Keywords: json | ---------------------------+------------------------------------------------ Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.5 Comment: Merged to both trunk and experimental. Thanks for the patch Dan! -- Ticket URL: <http://www.macruby.org/trac/ticket/257#comment:2> MacRuby <http://macruby.org/>
participants (2)
-
MacRuby
-
Matt Aimonetti