Skip to main content

object

Function object 

Source
pub fn object(pairs: Vec<(&str, Json)>) -> Json
Expand description

Builds an object from pairs, so a caller writes one line instead of five.

@param pairs - the members, in the order they should be written