Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/statelyai/xstate
/ toJSON
Method
toJSON
packages/core/src/createActor.ts:767–772 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
765
}
766
}
767
public toJSON() {
768
return
{
769
xstate$$
type
: $$ACTOR_TYPE,
770
id: this.id
771
};
772
}
773
774
/**
775
* Obtain the internal state of the actor, which can be persisted.
Callers
4
types.test.ts
File · 0.45
tags.test.ts
File · 0.45
App
Function · 0.45
App
Function · 0.45
Calls
no outgoing calls
Tested by
2
App
Function · 0.36
App
Function · 0.36