Closed Bug 2060972 Opened 2 months ago Closed 1 month ago

Show content-type: text/jsonl responses with the JSON Viewer

Categories

(DevTools :: JSON Viewer, task)

task

Tracking

(firefox155 fixed)

RESOLVED FIXED
155 Branch
Tracking Status
firefox155 --- fixed

People

(Reporter: mathew.hodson, Assigned: benoit.goupilleau)

References

Details

Attachments

(1 file)

content-type: text/jsonl seems to be a popular MIME type used for JSONL, and that wasn't adding in bug 2055774 as one of the supported types. I found the following example at https://docs.servicestack.net/jsonl-format

Example that uses content-type: text/jsonl
https://blazor-gallery.servicestack.net/albums.jsonl

Benoit, do you want to have a look at this?

Flags: needinfo?(benoit.goupilleau)
Flags: needinfo?(benoit.goupilleau)

text/jsonl is a common spelling for JSON Lines (e.g. ServiceStack serves
it) that bug 2055774 did not cover, so such responses fell through to the
plain text path instead of the JSON Viewer.

Accept it in the sniffer alongside the application/ spellings, and in
fixSave() so Save As restores the served type rather than falling back to
application/jsonl.

Assignee: nobody → benoit.goupilleau
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
QA Whiteboard: [qa-triage-done-c156/b155]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: