Browse Source

omitdefault

luis 7 năm trước cách đây
mục cha
commit
0727ac7dab
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      clientctx.go

+ 1 - 1
clientctx.go

@@ -32,7 +32,7 @@ type CallObj struct {
 	// Payload
 	Params   []interface{} `json:"params"`
 	Response interface{}   `json:"response"`
-	Error    string        `json:"error"`
+	Error    string        `json:"error,omitempty"`
 }
 
 // DataObj common structure for dymanic json object