The project is in a healthy, maintained state
json read write
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

 Project Readme

dorian-json-read-write

Read JSON and write it back in normalized pretty form.

Install

gem install dorian-json-read-write

Also included in the aggregate gem:

gem install dorian

Usage

json-read-write [json ...] [file ...]

Run json-read-write -h for generated option details and json-read-write -v for the installed version.

Notes

  • With files, rewrites each file. With stdin or inline JSON, prints normalized JSON to stdout.

Examples

Normalize stdin

cat package.json | json-read-write