/onelinejson

This command line format json to one line

Primary LanguageGo

one line json

This command line format .json file to one line format.

GitHub go.mod Go version Build GitHub license

Install

> go get github.com/gonejack/onelinejson

Usage

> onelinejson *.json

Before

{
    "a": 1,
    "b": 2,
    "c": 3
}

After

{"a":1,"b":2,"c":3}