Skip to content

Serializer streaming in Rails #7

@xtagon

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/

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