jrf

Crates.iojrf
lib.rsjrf
version0.0.2
sourcesrc
created_at2019-10-22 16:05:50.932277
updated_at2019-11-02 15:57:28.118986
descriptionAn underpowered JSON formatting cli
homepage
repositoryhttps://github.com/peterheesterman/jrf
max_upload_size
id174699
size3,367
Peter Heesterman (peterheesterman)

documentation

README

jrf (JSON rust formatter)

JSON formatter cli - something simple to use jsonist https://github.com/peterheesterman/jsonist

Much less useful than jq - also a lot simpler!

Installation

Cargo installed already? cargo install jrf

If not... find out how to install cargo!

Usage

jrf file_to_format.json

 // file_to_format.json
 { "Key of an obect": ["some", "values", "in", "a", "list"] }

Result

// file_to_format.json
{
    "Key of an obect": [
        "some",
        "values",
        "in",
        "a",
        "list"
    ]
}

Interesting

I wanted to test this on a really large file so I got one from here https://github.com/zemirco/sf-city-lots-json and it took about 40 seconds on my computer to take this 189.9mb file and format it into a 561mb monster.

Commit count: 6

cargo fmt