feature: parse the state to json