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

Function to_pretty_json

atomic-cli/src/commands/op/output.rs:148–150  ·  view source on GitHub ↗
(value: &T)

Source from the content-addressed store, hash-verified

146}
147
148pub(super) fn to_pretty_json<T: serde::Serialize>(value: &T) -> serde_json::Result<String> {
149 serde_json::to_string_pretty(value)
150}
151
152fn write_metadata_transition(
153 output: &mut String,

Callers 1

jsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected