https://github.com/martinlindhe/validjson
Command line tool to validate JSON syntax of input file.
https://github.com/martinlindhe/validjson
command-line-tool json-validation
Last synced: 9 months ago
JSON representation
Command line tool to validate JSON syntax of input file.
- Host: GitHub
- URL: https://github.com/martinlindhe/validjson
- Owner: martinlindhe
- License: mit
- Created: 2015-12-30T19:12:01.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-02-25T17:55:17.000Z (over 3 years ago)
- Last Synced: 2025-10-01T05:38:46.433Z (9 months ago)
- Topics: command-line-tool, json-validation
- Language: Go
- Homepage:
- Size: 1.21 MB
- Stars: 15
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# About
Command line tool to validate and pretty-print JSON syntax of
input files.
## Installation
Windows and macOS binaries are available under [Releases](https://github.com/martinlindhe/validjson/releases)
Or install from source:
go install github.com/martinlindhe/validjson@latest
## Usage
Exit code will be 0 if file is good.
$ validjson file.json
OK: file.json
$ curl http://site.com/file.json | validjson
OK: -
## Pretty-print
$ validjson -p file.json

## License
Under [MIT](LICENSE)