list_extract_spec function

Make sure that the extract specification is in list format