jshttp / mime-db

Media Type Database
MIT License
1.09k stars 256 forks source link

Newline-delimited JSON #224

Closed felipeochoa closed 2 years ago

felipeochoa commented 3 years ago

There seems to be growing consensus[1][2] around using application/x-ndjson for newline-delimited JSON, which is used for streaming JSON objects. There isn't an RFC yet for ndjson[3], which I think precludes registering with IANA. Would it be possible to nonetheless add to this library as a 'custom' MIME type?

1: Elasticsearch 2: Spring Framework 3: ndjson/ndjson-spec#21

dougwilson commented 3 years ago

Hi @felipeochoa ! An RFC is not required to submit the IANA form, as far as I know. Can you link to where you are seeing that an RFC of the format is required to add something to the IANA registry?

dougwilson commented 3 years ago

AFAIK it is just submitting the following form: https://www.iana.org/form/media-types

There are a lot of things in the IANA database (even recent ones I've seen come through) that have no RFC for their spec, especially private types like things companies define.

mattbishop commented 3 years ago

Just adding a +1 to this request.