pub fn json(&self, prettify: bool) -> Result<String, CompileError> {
        match prettify {
            true => serde_json::to_string_pretty(self),
            false => serde_json::to_string(self),
        }
        .map_err(|_| CompileError::static_str("unable to serialize contract to json"))
    }
/// Serialize the contract into a valid JSON ABI.
Serialize the contract into a valid JSON ABI.
Serialize the contract into a valid JSON ABI .
pub fn json(&self, prettify: bool) -> Result<String, CompileError> {
        match prettify {
            true => serde_json::to_string_pretty(self),
            false => serde_json::to_string(self),
        }
        .map_err(|_| CompileError::static_str("unable to serialize contract to json"))
    }
pub fn json ( & self , prettify : bool ) -> Result < String , CompileError > { match prettify { true => serde_json :: to_string_pretty ( self ) , false => serde_json :: to_string ( self ) , } . map_err ( | _ | CompileError :: static_str ( " " ) ) }
Serialize the contract into a valid JSON ABI.
Serialize the contract into a valid JSON ABI .
&self
prettify
bool
&self
prettify
bool