English 中文(简体)
在Ruboto项目中利用JSON
原标题:Using JSON in a Ruboto project

我用Ruboto将Ruby编成一个跳板,然后把它推向一个安乐器。 两个项目都将在我的电话和电话接收器上进行汇编和操作,但是,在这两个项目中,增加电话线要求打耳,改变其他一切,使他们在开端失败,把我带回电话主页。 因此,这无疑符合这一方针。 有什么想法可导致这种情况?

问题回答

Ruboto提供一种更便于操作的手法,其体积增加:

require  ruboto/util/stack 

with_large_stack{require  json }

with_large_stack do
  require  json 
end

This will run your code in a separate thread with larger stack allowing deep recursion. The default stack size f或 the with_large_stack method is 64KB. You can set this value using an optional integer argument 或 the option hash:

with_large_stack(128){require  json }

with_large_stack(:size => 128){require  json }

梯度为千米。

我有同样的问题;你可以使用

adb logcat

获取更多关于坠毁的信息。 如果你看一看,你就会发现一个错误的信息,表明存在四舍五入。 你们只能要求json/pure:

require  json/pure 

这仍然无助于解决总体问题:大多数要求电话会导致支离破碎。 进口 谷歌,我发现安伯无法接过太多的宽松的复读电话,只有大约22条,直到它用 st流撞。 据指出,解决办法是使用回收,而不是再入侵。

因此,我现在知道没有真正的解决办法。 大部分大型或有用的宝石也造成了同样的问题,例如:Yaml、httpi或Nokogiri。

Edit: There is a similar question in the Google mailing-list.





相关问题
Ruby parser in Java

The project I m doing is written in Java and parsers source code files. (Java src up to now). Now I d like to enable parsing Ruby code as well. Therefore I am looking for a parser in Java that parses ...

rails collection_select vs. select

collection_select and select Rails helpers: Which one should I use? I can t see a difference in both ways. Both helpers take a collection and generates options tags inside a select tag. Is there a ...

RubyCAS-Client question: Rails

I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?

Ordering a hash to xml: Rails

I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml

multiple ruby extension modules under one directory

Can sources for discrete ruby extension modules live in the same directory, controlled by the same extconf.rb script? Background: I ve a project with two extension modules, foo.so and bar.so which ...

Text Editor for Ruby-on-Rails

guys which text editor is good for Rubyonrails? i m using Windows and i was using E-Texteditor but its not free n its expired now can anyone plese tell me any free texteditor? n which one is best an ...

热门标签