pub fn encode_assets(assets: &Assets) -> Result<Vec<u8>>
Serialize assets as versioned, human-readable JSON.