use serde_json::Value;

use rrt_runtime::state::RuntimeState;

pub fn normalize_runtime_state(state: &RuntimeState) -> Result<Value, Box<dyn std::error::Error>> {
    Ok(serde_json::to_value(state)?)
}
