From a7a301ceba33ed8eb92632f0b64a90222e3a0cef Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Fri, 30 May 2025 10:02:43 -0700 Subject: [PATCH] Add JSON language check --- src-web/components/responseViewers/TextViewer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-web/components/responseViewers/TextViewer.tsx b/src-web/components/responseViewers/TextViewer.tsx index 8b0a5606..86cdbd16 100644 --- a/src-web/components/responseViewers/TextViewer.tsx +++ b/src-web/components/responseViewers/TextViewer.tsx @@ -117,7 +117,7 @@ export function TextViewer({ language, text, responseId, requestId, pretty, clas } // Decode unicode sequences in the text to readable characters - if (pretty) { + if (language === 'json' && pretty) { body = decodeUnicodeLiterals(body); body = body.replace(/\\\//g, '/'); // Hide unnecessary escaping of '/' by some older frameworks }