Crates.io | chunk-json-lite |
lib.rs | chunk-json-lite |
version | 0.1.0 |
source | src |
created_at | 2019-10-25 13:32:33.423898 |
updated_at | 2019-10-25 13:32:33.423898 |
description | A little tool to split a json into multiple valid json array of a given max size |
homepage | |
repository | https://github.com/Kerollmops/chunk-json-lite |
max_upload_size | |
id | 175610 |
size | 7,984 |
A little tool to split a json into multiple valid json array of a given max size
$ 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