We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b403f98 + e7e76ad commit 75c1981Copy full SHA for 75c1981
app/scripts/utils/utils.js
@@ -60,6 +60,11 @@ export function beautifyIndent (type, content) {
60
if (/.*application\/\w+\+xml.*/.test(type)) {
61
return { lang: 'xml', content: pd.xml(content, 2) }
62
}
63
+
64
+ // application/{word characters}+json.
65
+ if (/application\/\w+\+json/.test(type)) {
66
+ return { lang: 'json', content: pd.json(content, 2) }
67
+ }
68
} catch (err) {
69
console.log(err)
70
return { lang: '', content }
0 commit comments