I someone else using the format application/x-ndjs...
# http4k
u
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
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
also happy to take suggestions on how better to handle this in http4k streams.
j
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?!
u
you're right! Actually there is a third one. 🙂 https://github.com/ndjson/ndjson.github.io/issues/1
144 Views