pub fn dispatch_state_command(cmd: &Value) -> Option<Result<Value, String>>
Dispatch a state management command from its JSON payload. Returns Some(result) for recognised state_* actions, None otherwise.
Some(result)
None