diff --git a/json_to_csv/json_to_csv.py b/json_to_csv/json_to_csv.py index 4ae4ee1..cfc918b 100644 --- a/json_to_csv/json_to_csv.py +++ b/json_to_csv/json_to_csv.py @@ -73,9 +73,11 @@ def _flatten(d, parent_key='', sep='_', int_to_float=False): elif isinstance(w, str): my_elems.append('"' + w + '"') continue - else: + elif w != None: my_elems.append(w) continue + else: + continue # Put in in alphabetical order my_elems_w = sorted(my_elems_w, key=lambda tup: tup[0])