handle nullable attributes, test json unmarshal from single place