diff --git a/webroot/css/style.css b/webroot/css/style.css
index c4cb7427..3fb69b29 100644
--- a/webroot/css/style.css
+++ b/webroot/css/style.css
@@ -522,27 +522,6 @@ h3 {
color: #495057;
}
-.json-key {
- color: #0066cc;
- font-weight: bold;
-}
-
-.json-string {
- color: #d14;
-}
-
-.json-number {
- color: #905;
-}
-
-.json-boolean {
- color: #1e90ff;
-}
-
-.json-null {
- color: #999;
-}
-
.required-asterisk {
color: #f44336;
margin-left: 2px;
diff --git a/webroot/js/component/output.js b/webroot/js/component/output.js
index c7aef5e2..25f5993c 100644
--- a/webroot/js/component/output.js
+++ b/webroot/js/component/output.js
@@ -10,18 +10,6 @@ function createOutputSection() {
`;
}
-function highlightJSON(json) {
- if (typeof json !== 'string') {
- json = JSON.stringify(json, null, 2);
- }
-
- return json
- .replace(/("[\w\s_-]+")(\s*:)/g, '$1$2')
- .replace(/:\s*(".*?")/g, ': $1')
- .replace(/:\s*(\d+\.?\d*)/g, ': $1')
- .replace(/:\s*(true|false)/g, ': $1')
- .replace(/:\s*(null)/g, ': $1');
-}
function formatOutput(data) {
if (typeof data === 'string') {
@@ -40,7 +28,7 @@ function formatOutput(data) {
function displayOutput(output) {
const target = document.querySelector('#standardOutput');
if (!target) return;
- target.innerHTML = highlightJSON(formatOutput(output));
+ target.textContent = formatOutput(output);
}
function clearOutput() {
@@ -74,14 +62,13 @@ function initializeOutput() {
if (standardOutput) {
const initialJSON = standardOutput.textContent;
if (initialJSON.trim()) {
- standardOutput.innerHTML = highlightJSON(initialJSON);
+ standardOutput.textContent = initialJSON;
}
}
}
export {
createOutputSection,
- highlightJSON,
displayOutput,
displayError,
clearError,