#chunk #json #array #max #split #size

app chunk-json-lite

A little tool to split a json into multiple valid json array of a given max size

1 unstable release

0.1.0 Oct 25, 2019

MIT license

4KB

chunk-json-lite

A little tool to split a json into multiple valid json array of a given max size

Example usage

$ cargo install chunk-json-lite
$ cat misc/movies-10.json | chunk-json-lite '10 MB'
$ cat chunk.0.json

You can also combine it with csv2json-lite and transform a csv into chunked json:

$ cargo install csv2json-lite chunk-json-lite
$ cat misc/movies-10.csv | csv2json-lite | chunk-json-lite '10 MB'
$ cat chunk.0.json

Dependencies

~185KB