go test ./...
go get github.com/leobuzhi/asjson
echo "[1 , 2 , 3 ]" | asjson -min
#output:
#[1,2,3]
echo '{"key1": 1,"key2": "2"}' | asjson
#output:
# {
# "key1":1,
# "key2":"2"
# }
go test -bench .
#1000 2167372 ns/op
Contributions are welcomed and greatly appreciated.
asjon is under the GPL license.