Skip to content

Determine correct JSONL mimetype (and notes on NDJSON) #69

@ross-spencer

Description

@ross-spencer

JSONL uses application/jsonl in this app. I am also intrigued to add a suffix, e.g. application/jsonl+gzip application/jsonl+xr to denote its stream compression format if one is used.

NB. suffix may not be "valid' for this use, but there seems to be some obvious benefit. We could use a parameter as well.

Additionally in the jsonlines repo there is a discussion about formalizing the mimetype. This discussion also mentions oinbase.com. File returns application-x-ndjson e.g. integration_files/jsonl/gocfl/indexer_v1.jsonl: application/x-ndjson; charset=us-ascii and there's likely very little difference between the two formats but it should be understood in more detail. We can return one, or both, just fine.

Related to: wardi/jsonlines#19

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions