jsrmx 0.2.0

A command-line tool to manipulate JSON files. It can split large single-object JSON files into many files; merge multiple JSON files into one large JSON file; bundle multiple JSON files into one NDJSON file, and unbundle one NDJSON file into many JSON files.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// Process JSON objects
pub mod json;
/// Encode and decode nested string-escaped JSON objects
pub mod json_text;
/// Process newline-delimited lists of JSON objects
mod ndjson;

pub use json::Json;
pub use ndjson::{Bundler, BundlerBuilder, Unbundler, UnbundlerBuilder};

pub fn dots_to_slashes(str: &str) -> String {
    "/".to_string() + &str.split('.').collect::<Vec<&str>>().join("/")
}