I someone else using the format application/x-ndjson with http4k? It is a format (http://ndjson.org/) where each line is a valid json, separated by a new line but the total body won't be a valid json. This is intended for streaming purposes. We need to support this, and in case I can create a PR for it.
d
dave
05/10/2023, 9:57 AM
interestingly, this style of response is being used in the new http4k-connect-kafka-rest proxy module... although it's not that content type.
I think what would be interesting would be to see how it plays with inputstreams so we can attach it to a generator
u
Uberto Barbini
05/10/2023, 9:58 AM
also happy to take suggestions on how better to handle this in http4k streams.
j
James Richardson
05/10/2023, 3:04 PM
I have also heard of something like this called "JSONL" https://jsonlines.org/ - is there is difference?
Strangely the ndjson site is forked from the jsonlines site?!