The objects are created from JSON data using the default decoder therefore they contain only base types that must be converted. Thus annotations is a list of list and should be parsed like that.