[−][src]Function holochain_wasm_utils::memory_serialization::load_json_from_raw
pub fn load_json_from_raw<'s, T: Deserialize<'s>>(
ptr_data: *mut c_char
) -> Result<T, String>
Convert a json string stored in wasm memory into a specified struct If json deserialization of custom struct failed, tries to deserialize a RibosomeErrorReport struct. If that also failed, tries to load a string directly, since we are expecting an error string at this stage.