[#168] cmd/cli: Print netmap in JSON format

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-01-15 10:48:15 +03:00 committed by Alex Vanin
parent 36d8e2d3b7
commit 8d81954afe

View file

@ -144,7 +144,7 @@ func prettyPrintNodeInfo(i *netmap.NodeInfo, jsonEncoding bool) {
func prettyPrintNetmap(nm *control.Netmap, jsonEncoding bool) {
if jsonEncoding {
fmt.Println("JSON encoding is not implemented")
printJSONMarshaler(nm, "netmap")
return
}