I have a strange behavior when I encode my objects to JSON in order to do a POST request. For some reason some attributes are encoded into "null" instead of null a