fixes #7802, when api version 1.11 is `json.Marshal`ing the container st...

fixes #7802, when api version 1.11 is `json.Marshal`ing the container struct

Signed-off-by: Jessica Frazelle <jfrazelle@users.noreply.github.com>
Hmmm, isn't this needed for all api versions?