pub fn to_json(accounts: &Accounts) -> Json
Serialize the credential store for protected persistence and full backups only. Never expose this document as an account-list or catalog API response.