stateTree

fun stateTree(state: Any): JsonNode

state as a tree of the JSON stateText writes: a copy, keeping every number exact.