Leave out certain properties in Activity JSON

This commit is contained in:
Matt Baer
2018-06-25 13:35:47 -04:00
parent 05ac12f10e
commit d67ec28bcc
3 changed files with 9 additions and 13 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import "fmt"
type (
BaseObject struct {
Context []string `json:"@context"`
Context []string `json:"@context,omitempty"`
Type string `json:"type"`
ID string `json:"id"`
}