English 中文(简体)
• 怎么能知道,在我的铁路3号座车中,哪位JSON驾驶员活跃?
原标题:How can _know_ which JSON renderer is active in my Rails 3 app?
最佳回答

最好的办法不是与你的控制者打交道,而是使用铁路线,例如:

$ rails console
Loading development environment (Rails 3.2.8)
1.8.7 :001 > MultiJson.engine
 => MultiJson::Adapters::JsonGem 

你们可以直接与你铁路站在一起。

问题回答

最后,我可以这样说:文本 =>多Json.engine in my controller。 这产生了“MultiJson:Engines:Oj”。

它确认,Im已经使用所谓的最快的JSON图书馆,我可能会被人.。 我猜测,我试图通过控制器归还纯案文(与8相比需要2秒钟),并看到将这种案文转换成散射的例行做法将如何迅速......。





相关问题
JQuery/MVC Search Issue

I have inherited a piece of work where the entry screen shows a summary of 20 calculated variables. E.g. Var A (250), Var B (79). Clicking on any of these links takes the user to a view with a ...

jQuery quicksearch plug-in tinkering with JSON

I ve implemented the quicksearch plugin by Rik Lomas and I love it for an application in a custom CMS I m building. I was wondering though, since I m going to have a bizillion items in the table if ...

JSON with classes?

Is there a standardized way to store classes in JSON, and then converting them back into classes again from a string? For example, I might have an array of objects of type Questions. I d like to ...

PHP json_decode question

i m trying to use json_decode to combine a few json objects and then re-encode it. my json looks like: { "core": { "segment": [ { "id": 7, "...

Converting JSON data to Java object

I want to be able to access properties from a JSON string within my Java action method. The string is available by simply saying myJsonString = object.getJson(). Below is an example of what the string ...

热门标签