Skip to content

This project is a simple JSON editor that allows users to remove specific fields from a JSON file. Additionally, it includes path analysis and tree view features to help users better understand and navigate the structure of the JSON file.

License

Notifications You must be signed in to change notification settings

emredav/JsonEditorWebApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON Editor

This project is a JSON Tools built with React and TypeScript. It allows users to input JSON data, view its structure, generate a schema, and modify the JSON by removing selected fields.

Features

  • Parse and validate JSON input.
  • Generate a JSON schema from the input data.
  • Display the JSON data in a collapsible tree format.
  • Count the occurrences of items in the JSON structure.
  • Remove selected fields from the JSON data.

Project Structure

JsonEditorApp/JsonEditor/
├── public/               # Public assets
│   └── index.html        # Main HTML file
├── src/                  # Source code
│   ├── components/       # React components
│   │   ├── editors/      # Input editor components
│   │   ├── json-visualization/ # JSON tree visualization
│   │   └── ui/           # UI components like buttons, selectors
│   ├── hooks/            # Custom React hooks
│   │   └── useJsonOperations.ts # JSON processing hook
│   ├── styles/           # CSS styles
│   │   ├── base.css      # Base styles
│   │   ├── buttons.css   # Button styles
│   │   ├── components.css # Component-specific styles
│   │   ├── responsive.css # Responsive design rules
│   │   └── utilities.css # Utility classes
│   ├── utils/            # Utility functions
│   │   ├── fileUtils.ts  # File handling utilities
│   │   └── jsonUtils.ts  # JSON processing utilities
│   ├── App.tsx           # Main App component
│   ├── index.tsx         # Application entry point
│   └── react-app-env.d.ts # TypeScript declarations
├── package.json          # Dependencies and scripts
└── tsconfig.json         # TypeScript configuration

Getting Started

Prerequisites

  • Node.js (version 14 or higher)
  • npm (Node Package Manager)

Installation

  1. Clone the repository:

    git clone <repository-url>
    
  2. Navigate to the project directory:

    cd JsonEditor
    
  3. Install the dependencies:

    npm install
    

Usage

  1. Start the development server:

    npm start
    
  2. Open your browser and go to http://localhost:3000 to access the JSON Editor.

How to Use

  • Paste your JSON data into the input area.
  • Click the "Continue" button to parse the JSON.
  • Use the checkboxes to toggle the display of the JSON schema, item counts, and parsed JSON tree.
  • Select fields you want to remove and click the "Remove Fields" button to modify the JSON.
  • You can copy the generated schema or modified JSON to your clipboard using the provided buttons.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

This project is a simple JSON editor that allows users to remove specific fields from a JSON file. Additionally, it includes path analysis and tree view features to help users better understand and navigate the structure of the JSON file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published