json-sort 1.1.5

A command-line tool that sorts JSON files with a consistent key order, making them easier to read and maintain.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use wasm_bindgen::prelude::*;

#[wasm_bindgen]
pub fn sort_json_string(original: &str) -> Result<String, String> {
    crate::sort_json_string(original).map_err(|error| error.to_string())
}

#[wasm_bindgen]
pub fn json_sort_version() -> String {
    env!("CARGO_PKG_VERSION").to_string()
}