Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
9
pub 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"
]
Callers
1
stringify_and_parse_roundtrip_json_compatible_variant
Function · 0.85
Calls
1
to_json_value
Method · 0.80
Tested by
1
stringify_and_parse_roundtrip_json_compatible_variant
Function · 0.68