pub fn transform( data: &Value, spec: &Value, injdef: Option<&InjectDef>, ) -> Result<Value, StructError>