Deserialize ACL state from a JSON string.
Pure function — no I/O. Returns a valid AclState or a fresh permissive state if the input is invalid.
JSON string to parse
Parsed AclState, or fresh permissive state on parse failure
const json = localStorage.getItem('napplet:acl') ?? '';const state = deserialize(json); Copy
const json = localStorage.getItem('napplet:acl') ?? '';const state = deserialize(json);
Deserialize ACL state from a JSON string.
Pure function — no I/O. Returns a valid AclState or a fresh permissive state if the input is invalid.