nu_json::value

Trait ToJson

Source
pub trait ToJson {
    // Required method
    fn to_json(&self) -> Value;
}
Expand description

A trait for converting values to Hjson

Required Methods§

Source

fn to_json(&self) -> Value

Converts the value of self to an instance of Hjson

Implementors§

Source§

impl<T> ToJson for T
where T: Serialize + ?Sized,