Support trailing comma in attribute dictionaries