I need my nulls

I’m looking for a way to retain null values sent from a REST API server in JSON. Currently, I’m using a struct and unmarshal but this turns Nulls into zeros.

Does anyone have a quick code example or link to a good video on this? I tried with pointers but I’m not understanding how it helps, I still see zeros.

type foo struct {
  Foo *int `json:"foo"`