Fix #144622 using mime text/x-json instead of application/json

This commit is contained in:
Andreas Weber
2022-03-07 20:45:40 +01:00
parent a8482cf684
commit 70cc8c10e1
2 changed files with 4 additions and 4 deletions

View File

@@ -3204,7 +3204,7 @@ export class NotebookCellOutputItem {
return new NotebookCellOutputItem(bytes, mime);
}
static json(value: any, mime: string = 'application/json'): NotebookCellOutputItem {
static json(value: any, mime: string = 'text/x-json'): NotebookCellOutputItem {
const rawStr = JSON.stringify(value, undefined, '\t');
return NotebookCellOutputItem.text(rawStr, mime);
}