Add json-color
to your Cargo.toml as usual, and then import and call the colorize_json_string
function:
```rust extern crate json_color;
use jsoncolor::colorizejson_str
...
if let Ok(coloredjson) = colorizejsonstr("{ \"foo\": [1, 2.0, false, null] }") { println!("{}", coloredjson); } ```
That's it!
Hosted at docs.rs.