json
ModuleRows exported to a JSON file.
Contents
use utopia_migration::destinations::json::Json;Rust
pub struct JsonRows of one table exported to <directory>/<filename>.json on a storage
device: a JSON array of objects with $id, $permissions, $createdAt
and $updatedAt first. Batches are written to a local temporary file;
Destination::shutdown closes the array and copies it to the device.
Also implements
Debug.use utopia_migration::destinations::json::sanitize_filename;Rust
pub fn sanitize_filename(filename: &str) -> StringOf the CSV and JSON destinations: :/<>"|*? and
bytes outside printable ASCII become _, the result is trimmed, and an
empty result (or "0") is export.