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

Function parse

perro_source/api_modules/perro_modules/src/json.rs:4–7  ·  view source on GitHub ↗
(json_str: &str)

Source from the content-addressed store, hash-verified

2use serde_json::Value;
3
4pub fn parse(json_str: &str) -> Result<Variant, serde_json::Error> {
5 let value: Value = serde_json::from_str(json_str)?;
6 Ok(Variant::from_json_value(value))
7}
8
9pub fn stringify(value: &Variant) -> Result<String, serde_json::Error> {
10 let json_value = value.to_json_value();

Callers 15

reload_scene_pathFunction · 0.50
exact_picker_node_typeFunction · 0.50
picker_node_typesFunction · 0.50
save_all_scenesFunction · 0.50
collect_innerFunction · 0.50
open_scene_pathFunction · 0.50
cached_scene_doc_sharedFunction · 0.50
cached_scene_nodeFunction · 0.50

Calls

no outgoing calls