format

Function format 

Source
pub fn format(value: &RsonValue) -> RsonResult<String>
Expand description

Format a RsonValue as an RSON string.

ยงExamples

use rson_core::{RsonValue, format};

let value = RsonValue::String("Hello, RSON!".to_string());
let formatted = format(&value).unwrap();
assert_eq!(formatted, r#""Hello, RSON!""#);