rails / jbuilder

Jbuilder: generate JSON objects with a Builder-style DSL
MIT License
4.34k stars 440 forks source link

Jbuilder splitting array with length more than 100 in to two arrays #442

Closed shanshaji closed 6 years ago

shanshaji commented 6 years ago

I have a seats table with records more than 100, whenever i try to build json in index.json.jbuilder, it return two arrays Index.json.jbuilder

json.seats @seats do |seat|
    json.id seat.id
    json.name seat.name
    json.row_name seat.row_name
    json.is_open seat.is_open
end
shanshaji commented 6 years ago

It's only returning a single array, but in my network logs it was truncating and showing it as two arrays.