MCPcopy Create free account
hub / github.com/DNAProject/DNA / PrintJsonData

Function PrintJsonData

cmd/usage.go:448–456  ·  view source on GitHub ↗
(data []byte)

Source from the content-addressed store, hash-verified

446}
447
448func PrintJsonData(data []byte) {
449 var out bytes.Buffer
450 err := json.Indent(&out, data, "", " ")
451 if err != nil {
452 PrintErrorMsg("json.Indent error:%s", err)
453 return
454 }
455 PrintInfoMsg(out.String())
456}
457
458func PrintJsonObject(obj interface{}) {
459 data, err := json.Marshal(obj)

Callers 4

PrintJsonObjectFunction · 0.85
blockInfoFunction · 0.85
txInfoFunction · 0.85
txStatusFunction · 0.85

Calls 3

PrintErrorMsgFunction · 0.85
PrintInfoMsgFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected