Hi,
The README talks about this library's ability to stream the JSON generation. Is there a way to take advantage of this in my Rails 4 controllers, and stream the response JSON straight from the serializer? Currently what happens is I call json! and render the resulting JSON string...but that can be very large, and it might be beneficial to take advantage of Rails 4's ActionController::Live abilities.
What do you think?
Here's an example of ActionController::Live: http://www.sitepoint.com/streaming-with-rails-4/
Hi,
The README talks about this library's ability to stream the JSON generation. Is there a way to take advantage of this in my Rails 4 controllers, and stream the response JSON straight from the serializer? Currently what happens is I call
json!and render the resulting JSON string...but that can be very large, and it might be beneficial to take advantage of Rails 4'sActionController::Liveabilities.What do you think?
Here's an example of
ActionController::Live: http://www.sitepoint.com/streaming-with-rails-4/