Feature
Feature Request
Description
Add a new "Copy JSON" feature to the Tools menu that allows users to quickly copy formatted or minified JSON to their clipboard.
Problem
Currently, users need to manually select and copy JSON text from the editor, which is inconvenient and error-prone, especially with large JSON documents.
Proposed Solution
Add a "Copy JSON" menu item in the Tools dropdown that opens a modal with:
- Formatted tab: Pretty-printed JSON with indentation
- Minified tab: Single-line minified JSON
- Copy buttons for each format
- Toast notifications confirming successful copy
- Support for dark/light themes
Benefits
Quick and convenient clipboard access for JSON data
Support for multiple formats (formatted/minified)
Better user experience with visual feedback
No need to manually select text from editor
Improved workflow for sharing JSON
Design Approach
- Similar to existing modals (SchemaModal, DownloadModal)
- Use Monaco Editor for displaying JSON with syntax highlighting
- Dark/light theme support via useConfig hook
- Mantine UI components for consistency
- Proper error handling and user feedback
Use Case Example
- User has a large JSON file loaded in editor
- User clicks "Tools" menu
- User clicks "Copy JSON"
- Modal opens showing formatted JSON
- User clicks "Copy Formatted" button
- Toast notification confirms: "Formatted JSON copied to clipboard!"
- User can now paste JSON elsewhere
Acceptance Criteria
Alternative solutions or implementations
Adding keyboard shortcut (Cmd/Ctrl + Shift + C) for quick access
Other context
No response
Feature
Feature Request
Description
Add a new "Copy JSON" feature to the Tools menu that allows users to quickly copy formatted or minified JSON to their clipboard.
Problem
Currently, users need to manually select and copy JSON text from the editor, which is inconvenient and error-prone, especially with large JSON documents.
Proposed Solution
Add a "Copy JSON" menu item in the Tools dropdown that opens a modal with:
Benefits
Quick and convenient clipboard access for JSON data
Support for multiple formats (formatted/minified)
Better user experience with visual feedback
No need to manually select text from editor
Improved workflow for sharing JSON
Design Approach
Use Case Example
Acceptance Criteria
Alternative solutions or implementations
Adding keyboard shortcut (Cmd/Ctrl + Shift + C) for quick access
Other context
No response