shape_fragment

Function shape_fragment 

Source
pub fn shape_fragment(
    document: &Value,
    fragment: &FragmentSpec,
) -> Result<Value, String>
Expand description

Shape a fragment: extract the value using the JSONPath expression (if any), otherwise return the document as-is.