MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / json

Function json

atomic-cli/src/commands/op/mod.rs:212–214  ·  view source on GitHub ↗
(value: &T)

Source from the content-addressed store, hash-verified

210}
211
212fn json<T: serde::Serialize>(value: &T) -> CliResult<String> {
213 to_pretty_json(value).map_err(|error| CliError::Internal(error.into()))
214}
215
216#[cfg(test)]
217mod tests {

Callers

nothing calls this directly

Calls 1

to_pretty_jsonFunction · 0.85

Tested by

no test coverage detected