pub fn ipld_from_json(data: &str) -> Result<Ipld>Expand description
Decodes IPLD data from DAG-JSON string.
ยงExamples
use ipfrs_core::{utils::{ipld_to_json, ipld_from_json}, Ipld};
let ipld = Ipld::String("hello".to_string());
let json = ipld_to_json(&ipld).unwrap();
let decoded = ipld_from_json(&json).unwrap();
assert_eq!(ipld, decoded);