Newline Delimited JSON throws errors #538

aventuralabs opened this Issue Apr 14, 2012 · 2 comments


None yet

2 participants


Many websites (e.g. SendGrid) are employing newline-delimited JSON under the 'application/json' header (due to a lack of standards currently set).

Connect throws errors in bodyParser at line 137 and subsequently in methodOverride at line 27.

Thoughts appreciated as to how to circumvent these errors without additional middleware. One solution would be to split the newline-delimited JSON and "wrap" each line with "record" keys.

Sencha Labs member
tj commented Apr 15, 2012

you could write a little middleware that splits on the newlines to give you an array of objects, this isnt something that core should be doing though

@tj tj closed this Apr 15, 2012

Thanks for the guidance...wrote a small piece of middleware here:

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