pub fn write_array_json<P, A, S>( path: P, array: &ArrayBase<S, IxDyn>, ) -> Result<()>where P: AsRef<Path>, A: Serialize + Clone, S: Data<Elem = A>,
Convenience function to write an array to JSON format