pub fn shape_fragment( document: &Value, fragment: &FragmentSpec, ) -> Result<Value, String>
Shape a fragment: extract the value using the JSONPath expression (if any), otherwise return the document as-is.