Skip to content

dorianmariecom/dorian-json-uniq

Repository files navigation

dorian-json-uniq

Deduplicate top-level JSON arrays.

Install

gem install dorian-json-uniq

Also included in the aggregate gem:

gem install dorian

Usage

json-uniq [options] [json ...] [file ...]

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

Notes

  • Non-array JSON is parsed and printed back unchanged. Use --pretty false for compact output.

Examples

Deduplicate compactly

json-uniq '[1,1,2]' --pretty false

Output:

[1,2]

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors