An open API service indexing awesome lists of open source software.

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.

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

![screenshot](examples/pretty.png)

## License

Under [MIT](LICENSE)