---
# System prepended metadata

title: Untitled

---

type FooBar struct {
   n int 
}

type Task struct {
   t FooBar `json:"t,omitempty"`
}

/* type Marshaler interface {
        MarshalJSON() ([]byte, error)
} */


json.Marshal(Task{FooBar{3}}) > {t: {n: 3}}
json.Marshal(Task{FooBar{3}}) > {t: "foo"}

n divisible? 3 = "foo"
n divisible? 5 = "bar"
n divisible? 3 and divisible? 5 = "foobar"
