From 96e4038e59d6282a6e1571bfc4381095bdf82b03 Mon Sep 17 00:00:00 2001 From: odilitime Date: Fri, 7 Mar 2025 06:59:56 +0000 Subject: [PATCH] address issue #3779 --- packages/core/src/parsing.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/core/src/parsing.ts b/packages/core/src/parsing.ts index f7393875e28..fc1f2e10541 100644 --- a/packages/core/src/parsing.ts +++ b/packages/core/src/parsing.ts @@ -147,9 +147,10 @@ export function parseJSONObjectFromText( if (jsonBlockMatch) { text = cleanJsonResponse(text); - const parsingText = normalizeJsonString(text); + // see issue 3779 + //const parsingText = normalizeJsonString(text); try { - jsonData = JSON.parse(parsingText); + jsonData = JSON.parse(text); } catch (e) { console.error("Error parsing JSON:", e); console.error("Text is not JSON", text); @@ -161,9 +162,10 @@ export function parseJSONObjectFromText( if (objectMatch) { text = cleanJsonResponse(text); - const parsingText = normalizeJsonString(text); + // see issue 3779 + //const parsingText = normalizeJsonString(text); try { - jsonData = JSON.parse(parsingText); + jsonData = JSON.parse(text); } catch (e) { console.error("Error parsing JSON:", e); console.error("Text is not JSON", text);