Documentation
    Preparing search index...

    Function serialize

    • Serialize a FirewallConfig to a JSON string.

      Pure function — no I/O. The persistence adapter in @kehto/shell (Phase 81) uses this to write config to localStorage or other backends.

      Parameters

      Returns string

      JSON string representation

      const json = serialize(config);
      localStorage.setItem('kehto:firewall', json);