I'll ping Jeremy later. He has strong opinion about that and the complexity
of the implementation. I agree with him about coming up with a better
designer or extracting that to a plugin.
Rafael Mendonça França
http://twitter.com/rafaelfranca
https://github.com/rafaelfranca
On Thu, Nov 1, 2012 a
Could someone please take a look at
https://github.com/rails/rails/pull/7835 and tell me what's left to be
done?
Jarl
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com.
On Thu, Nov 1, 2012 at 4:35 PM, Rodrigo Rosenfeld Rosas
wrote:
> It is not as simple as one might think.
>
I'm aware that you need to have the library support for that, but this is
not a rails concern. Rails depends on multi_json (well, technically Active
Support depends on it) and you can choos
It is not as simple as one might think.
It requires streaming support by the JSON library itself since the point
is to start streaming the output *before* the JSON encoding is finished.
You should be able to pass the output streaming buffer object to the
JSON formatter library. For instance,
As far as I know there is no plans to make it the default, but nothing
stops you from using ActionController::Live to stream JSON as soon as you
generate it.
On Thu, Nov 1, 2012 at 3:14 PM, Rodrigo Rosenfeld Rosas
wrote:
> I have some pretty big data to be encoded to JSON in my application and it
I have some pretty big data to be encoded to JSON in my application and
it would be faster if rendering my data as JSON could be done with a
stream response.
So, if the network is the bottleneck, the clients wouldn't notice some
seconds of delay before starting to receive the JSON response tha