+
Skip to content

Conversation

iyuq
Copy link

@iyuq iyuq commented Sep 2, 2025

  • Add auto-unescape toggle to handle escaped JSON strings like '{"key":"value"}'
  • Implement smart unescaping logic that handles quotes, backslashes, and common escape sequences
  • Support both quoted and unquoted escaped JSON formats
  • Add real-time validation that works with auto-unescape toggle
  • Improve UI layout with wider label for auto-unescape option
  • Add comprehensive unit tests (15 test cases) covering all functionality
  • Add E2E tests (6 test scenarios) for complete user workflow testing
  • Update placeholder text to guide users about the new feature
  • Add test-id for better E2E test reliability

This enhancement allows developers to easily prettify JSON from logs, API responses, and other sources where JSON is commonly escaped in strings.

image image

…trings

- Add auto-unescape toggle to handle escaped JSON strings like '{\"key\":\"value\"}'
- Implement smart unescaping logic that handles quotes, backslashes, and common escape sequences
- Support both quoted and unquoted escaped JSON formats
- Add real-time validation that works with auto-unescape toggle
- Improve UI layout with wider label for auto-unescape option
- Add comprehensive unit tests (15 test cases) covering all functionality
- Add E2E tests (6 test scenarios) for complete user workflow testing
- Update placeholder text to guide users about the new feature
- Add test-id for better E2E test reliability

This enhancement allows developers to easily prettify JSON from logs, API responses,
and other sources where JSON is commonly escaped in strings.
Copy link

sonarqubecloud bot commented Sep 2, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
10.7% Duplication on New Code (required ≤ 3%)
B Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@sharevb
Copy link
Contributor

sharevb commented Sep 27, 2025

Hi @iyuq if you arr interested in up to date version of it-tools, I made kind of a fork here : https://github.com/sharevb/it-tools (https://sharevb-it-tools.vercel.app/ and docker images https://github.com/sharevb/it-tools/pkgs/container/it-tools)

May be want to apply your PR to my fork ? thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载