Browse Source

omitdefault

luis 7 years ago
parent
commit
0727ac7dab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      clientctx.go

+ 1 - 1
clientctx.go

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