pub fn parse_and_format(
json_str: &str,
opts: &FormatOptions,
) -> Result<String, Error>Expand description
Parse a raw JSON string and return the formatted (colorized) output.
This is a convenience function combining serde_json::from_str with
format_json.