Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New content-type convention suggestion #19

Open
pavelnikolov opened this issue Jul 25, 2016 · 4 comments
Open

New content-type convention suggestion #19

pavelnikolov opened this issue Jul 25, 2016 · 4 comments

Comments

@pavelnikolov
Copy link

@pavelnikolov pavelnikolov commented Jul 25, 2016

What do you think about adding new HTTP content-type for jsonlines data.
What about application/jsonl?

@jbaehr
Copy link

@jbaehr jbaehr commented Aug 9, 2019

I'd rather prefer application/json-lines otherwise it may look like a typo ;-)

In addition to the Media Type, a registered structured suffix may be interesting. In my eyes even more useful, to create media types like application/vnd.my-company.some-thing+json-lines.

See also:
https://www.iana.org/assignments/media-types/
https://www.iana.org/assignments/media-type-structured-suffix/

@wardi have you considered filing a registration for a json-lines Media Type and structured suffix at IANA?

@karmakaze
Copy link

@karmakaze karmakaze commented Sep 1, 2019

There is an IETF RFC 7464 for JSON Text Sequences that uses mime type: application/json-seq

It allows prefixing each JSON record with <RS> control character and requires ending each JSON record with <LF>.

Also see: https://en.wikipedia.org/wiki/JSON_streaming

@jbaehr
Copy link

@jbaehr jbaehr commented Nov 7, 2019

This seems like a duplicate of #9. The whole purpose of the Content-Type header is to communicate the media type.

@whlavina
Copy link

@whlavina whlavina commented Dec 30, 2020

The lack of a definitive IANA Media Type for JSON Lines causes some difficulty for those of us using the format. In the interest of pushing the issue, I took the liberty of starting a conversation:
https://mailarchive.ietf.org/arch/msg/json/dWMWD0JDa2HiUYjWjLjrQExeIx4/

Perhaps someone here would like to join that thread?

Disclaimer: I am in no way affiliated with the IANA/IETF. I am merely interested in using the format, correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants