'Parses the JSON exception to extract the bad
items and returns them
This is very kludgy for the moment, but we would need
to refactor the exceptions sent from the front end
to make this better'

def parse_json_exception(self, full_error):

    errmsg = str(full_error).split('Traceback')[0].rstrip('\n')
    parts = errmsg.split(':')
    if (len(parts) != 3):
        return []
    return [item.strip() for item in parts[2].split(',') if item.strip()]
