Skip to content
Snippets Groups Projects
Commit 845e7959 authored by jiangyaoguo's avatar jiangyaoguo
Browse files

FAB-3: Fix Json output for empty network list


The generated pb.PeersMessage struct will be added "omitempty" tag automatically. So when
 marshal an empty PeersMessage, we get a "{}". Add a new tempoprary struct without
"omitempty" to replace PeerMesssage. Now we can get "{"Peer": []}"

Change-Id: I1fc310c951cf4e85a61660f2c45f700136dc5010
Signed-off-by: default avatarjiangyaoguo <jiangyaoguo@gmail.com>
parent 0363e1d8
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment