pub fn json_sample_data2schema( name: String, namespace: Option<String>, j: Value, ) -> Result<FlatRecord, Error>