[PR #241] [CLOSED] format json using jsonrepair #167

Closed
opened 2025-12-29 08:31:50 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mountain-loop/yaak/pull/241
Author: @subframe7536
Created: 7/17/2025
Status: Closed

Base: mainHead: format-json


📝 Commits (6)

  • c7f337c format json using jsonrepair
  • e4f0a4c Merge branch 'master' into format-json
  • efd09c1 Switch back to custom formatter, disable repair for editor formatting, and other cleanup
  • 36e0f64 Catch jsonrepair exception
  • f252591 Merge branch 'master' into format-json
  • b8e6dcf support replacing spaces in Windows

📊 Changes

6 files changed (+82 additions, -21 deletions)

View changed files

📝 package-lock.json (+21 -1)
📝 src-tauri/yaak-templates/src/format.rs (+38 -2)
📝 src-web/components/core/Editor/Editor.tsx (+1 -1)
📝 src-web/components/core/Editor/extensions.ts (+2 -2)
📝 src-web/lib/formatters.ts (+18 -14)
📝 src-web/package.json (+2 -1)

📄 Description

In real world cases, paste-into json strings sometimes are corrupted and could cause syntax error, so I use jsonrepair to fix them. Also, @shopify/lang-jsonc is used to enhance color highlighting effect.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/mountain-loop/yaak/pull/241 **Author:** [@subframe7536](https://github.com/subframe7536) **Created:** 7/17/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `format-json` --- ### 📝 Commits (6) - [`c7f337c`](https://github.com/mountain-loop/yaak/commit/c7f337c4444bc90fe437699da88360620bd428a2) format json using `jsonrepair` - [`e4f0a4c`](https://github.com/mountain-loop/yaak/commit/e4f0a4c262419e0021a93a13c2341a1977dd778a) Merge branch 'master' into format-json - [`efd09c1`](https://github.com/mountain-loop/yaak/commit/efd09c122790746ac28c3440e67367f7605767dc) Switch back to custom formatter, disable repair for editor formatting, and other cleanup - [`36e0f64`](https://github.com/mountain-loop/yaak/commit/36e0f645ccacdfc09f392d391f05b8b3719439a1) Catch jsonrepair exception - [`f252591`](https://github.com/mountain-loop/yaak/commit/f252591240f6eab7d638c195091ac6690b5db333) Merge branch 'master' into format-json - [`b8e6dcf`](https://github.com/mountain-loop/yaak/commit/b8e6dcfade71414f00d955166e99052880c5c428) support replacing spaces in Windows ### 📊 Changes **6 files changed** (+82 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `package-lock.json` (+21 -1) 📝 `src-tauri/yaak-templates/src/format.rs` (+38 -2) 📝 `src-web/components/core/Editor/Editor.tsx` (+1 -1) 📝 `src-web/components/core/Editor/extensions.ts` (+2 -2) 📝 `src-web/lib/formatters.ts` (+18 -14) 📝 `src-web/package.json` (+2 -1) </details> ### 📄 Description In real world cases, paste-into json strings sometimes are corrupted and could cause syntax error, so I use `jsonrepair` to fix them. Also, `@shopify/lang-jsonc` is used to enhance color highlighting effect. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 08:31:50 +01:00
adam closed this issue 2025-12-29 08:31:50 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/yaak-mountain-loop#167