MCPcopy Create free account
hub / github.com/base/base / compact_json

Method compact_json

acceptance/src/report.rs:554–556  ·  view source on GitHub ↗

Serializes a JSON value on one line.

(value: &Value)

Source from the content-addressed store, hash-verified

552
553 /// Serializes a JSON value on one line.
554 pub fn compact_json(value: &Value) -> String {
555 serde_json::to_string(value).unwrap_or_else(|_| "null".into())
556 }
557
558 /// Formats an optional observation as a value or explicit gap.
559 pub fn option_u64(value: Option<u64>) -> String {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected