Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix(fileUtils): remove overly aggressive JSON validation

Adam Eivy175316344ff6
diff --git a/server/lib/fileUtils.js b/server/lib/fileUtils.js
index e0b769c1c9..a86dce9cbc 100644
--- a/server/lib/fileUtils.js
+++ b/server/lib/fileUtils.js
@@ -113,10 +113,6 @@ export function isValidJSON(str, { allowArray = true } = {}) {
if (!isObject && !(allowArray && isArray)) return false;
- // Check for common corruption patterns
- if (isObject && (trimmed.endsWith('}}') || trimmed.includes('}{'))) return false;
- if (isArray && (trimmed.endsWith(']]') || trimmed.includes(']['))) return false;
-
return true;
}