fn write_json_file( path: &str, script: &[u8], tokens: &[MethodToken], manifest: &Value, metadata: &ContractMetadata, source: &str, json_warnings: bool, ) -> Result<(), String>