INNER CODE UNIT · Rust

from_json

zkonduit/ezkl · src/lib.rs:437

    pub fn from_json(arg_json: &str) -> Result<Self, serde_json::Error> {
        serde_json::from_str(arg_json)
    }
}

// Additional helper functions for the module

/// Parses a key-value pair from a string in the format "key->value"
///
/// # Arguments
/// * `s` - Input string in the format "key->value"
///
/// # Returns
/// * `Ok((T, U))` - Parsed key and value
/// * `Err` - If parsing fails
#[cfg(all(feature = "ezkl", not(target_arch = "wasm32")))]
fn parse_key_val<T, U>(
    s: &str,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…