From 1cb351105acf17445270f0a22111cc8d7498f55b Mon Sep 17 00:00:00 2001 From: "claude[bot]" <209825114+claude[bot]@users.noreply.github.com> Date: Thu, 7 Aug 2025 02:31:47 +0000 Subject: [PATCH 1/3] feat: Add JSON repair functionality - Add jsonrepair dependency to package.json - Implement repairJSON function in json.vue utility - Add red Repair button with wrench icon to UI - Support for fixing common JSON errors including Python dict strings, malformed LLM output, missing quotes/commas, and more Resolves #13 Co-authored-by: Gordon Weakliem --- package.json | 1 + pages/utils/json.vue | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/package.json b/package.json index 2652a88..57e5381 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ }, "dependencies": { "@nuxtjs/tailwindcss": "^6.12.2", + "jsonrepair": "^3.8.1", "nuxt": "^3.13.2", "nuxt-icon": "^1.0.0-beta.7", "qrcode-vue3": "^1.7.1", diff --git a/pages/utils/json.vue b/pages/utils/json.vue index 7febcaf..ceded72 100644 --- a/pages/utils/json.vue +++ b/pages/utils/json.vue @@ -57,6 +57,11 @@ Unescape + @@ -73,6 +78,8 @@