oa_gateway_uci::json

Function write_node

Source
fn write_node(
    node: &Node,
    schema: &Schema,
    type_name: &str,
    path: &str,
    depth: usize,
) -> Result<Value, UciError>
Expand description

Writes one node. $type is emitted when Complex::type_name is set. Field::Many becomes a JSON array.