A web-based JSON editor application.
The landing page of the application provides quick access to all main features. From here, you can:
A full-featured JSON editor with syntax highlighting and validation. This view allows you to:
A read-only view for JSON documents with collapsible sections. This view is ideal for:
A comparison tool that highlights differences between two JSON documents. Features include:
An advanced debugging tool available in debug mode that shows:
Call it at /__viz
# Run with default settings
jsonedit
# Run with custom settings
jsonedit --port 3000 --host 0.0.0.0 --indent " " --read-only
The application can be configured using command-line flags or environment variables:
Flag | Environment Variable | Default | Description |
---|---|---|---|
--port |
JSON_EDIT_PORT |
8080 | Port to listen on |
--host |
JSON_EDIT_HOST |
localhost | Host to listen on |
--indent |
JSON_EDIT_INDENT |
” “ | Indentation level |
--read-only |
JSON_EDIT_READ_ONLY |
false | Read-only mode |
--log-level |
JSON_EDIT_LOG_LEVEL |
info | Log level (debug, info, warn, error) |
When running in debug mode (by setting --log-level debug
), the application exposes a /__viz
endpoint that provides visualization and logging of HTTP requests and responses, which is useful for debugging and development.
This project uses GoReleaser to build and release binaries for multiple platforms:
To test the build process locally:
# Install GoReleaser if you haven't already
go install github.com/goreleaser/goreleaser@latest
# Test the build without releasing
goreleaser build --snapshot --clean
The built binaries will be available in the dist/
directory.
To create a new release:
git tag -a v0.1.0 -m "First release"
git push origin v0.1.0
The GitHub Actions workflow will automatically build and release the binaries.
This project uses the following dependencies not from the same author:
This project uses the following fonts:
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.