Skip to content

Serializer streaming in Rails #7

Description

@xtagon

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/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions