Skip to main content

from_json

Function from_json 

Source
pub fn from_json<T: DeserializeOwned>(program: &str, json: &str) -> Result<T>
Available on crate feature serde only.
Expand description

Deserialize a forge CLI’s --json output into T, mapping a parse failure to Error::Parse tagged with program (the CLI’s binary name).