add omitempty to some of the json fields, switch on Runtime type because it returns an empty string "" if Runtime does not exist