JSON Triage Editor is a powerful and user-friendly web application designed to help you visualize, edit, and filter JSON data effortlessly. Built with React, it leverages the capabilities of JSONPath to provide advanced querying and manipulation of JSON structures.
- JSON Visualization: Easily view and navigate through JSON data.
- JSON Editing: Modify JSON data directly within the application.
- JSONPath Filtering: Use JSONPath expressions to filter and query JSON data.
- Suggested JSONPaths: Automatically generate and select suggested JSONPath expressions.
This project was bootstrapped with Create React App.
- Node.js (v14 or higher)
- npm (v6 or higher)
-
Clone the repository:
git clone https://github.com/siri1410/json-editor.git cd json-editor -
Install dependencies:
npm install
In the project directory, you can run:
Runs the app in development mode.
Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
Launches the test runner in interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
Note: this is a one-way operation. Once you eject, you can't go back!
If you aren't satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.
- Load JSON Data: Paste your JSON data into the provided textarea.
- Edit JSON Data: Modify the JSON data directly in the textarea.
- Filter JSON Data: Enter a JSONPath expression in the input field and click "Filter" to see the filtered results.
- Select Suggested JSONPath: Use the dropdown to select from suggested JSONPath expressions.
$..name- Selects all names$..amount- Selects all amounts$..transactions[?(@.length > 0)]- Selects all transactions with size greater than 0$..transactions[?(@.date > "2023-01-01")]- Selects all transactions with a date after 2023-01-01$[?(@.amount > 150)]- Selects all items where the amount is greater than 150
Bonus Tip:
-
Initialize Firebase Hosting:
npm init @apphosting
-
List Firebase projects:
firebase projects:list
-
Create a new backend:
firebase apphosting:backends:create --project sdods-json --location us-central1 json-editor
-
Install Firebase tools:
npm install -g firebase-tools
-
Authorize Firebase GitHub app:
- Visit the URL provided by the Firebase CLI to authorize the GitHub app.
- Press Enter once you have authorized the GitHub App.
-
Link your GitHub repository:
- Select your GitHub account and repository.
- Specify your app's root directory and branch for continuous deployment.
- Confirm the repository link.
-
Set up your backend:
- Provide a name for your backend (e.g.,
sdods-json-backend). - Confirm the backend creation.
- Provide a name for your backend (e.g.,
-
Deploy your app:
-
Confirm the deployment when prompted.
-
Track the rollout at the Firebase console.
-
firebase emulators:start // for local testing
-
firebase hosting:channel:deploy sdods-json-backend
-
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
- Code Splitting
- Analyzing the Bundle Size
- Making a Progressive Web App
- Advanced Configuration
- Deployment
- Troubleshooting
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
If you find this project useful, consider buying me a coffee:
Thank you for using JSON Editor! Your support is greatly appreciated.
