MCPcopy Create free account
hub / github.com/PerroEngine/Perro / stringify

Function stringify

perro_source/api_modules/perro_modules/src/json.rs:9–12  ·  view source on GitHub ↗
(value: &Variant)

Source from the content-addressed store, hash-verified

7}
8
9pub fn stringify(value: &Variant) -> Result<String, serde_json::Error> {
10 let json_value = value.to_json_value();
11 serde_json::to_string(&json_value)
12}
13
14#[cfg(test)]
15#[path = "../tests/unit/json_tests.rs"]

Calls 1

to_json_valueMethod · 0.80