Function stringify_value
Source pub fn stringify_value(val: &Value) -> String
Expand description
Stringify a value.
§Arguments
val - The value to stringify.
§Returns
The stringified value.
§Example
use agent_chain_core::utils::strings::stringify_value;
assert_eq!(stringify_value(&serde_json::json!("hello")), "hello");
assert_eq!(stringify_value(&serde_json::json!(42)), "42");