Skip to content

Commit

Permalink
Change #869 to emit properties as long as they are not null
Browse files Browse the repository at this point in the history
  • Loading branch information
James McKinney committed Jul 24, 2017
1 parent 6b6d7c8 commit f63a654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csvkit/utilities/csvjson.py
Original file line number Diff line number Diff line change
@@ -134,7 +134,7 @@ def dump_json(data, newline=False):
max_lon = lon
elif i == id_column:
geoid = c
elif c:
elif c is not None:
properties[table.column_names[i]] = c

if id_column is not None:

1 comment on commit f63a654

@jayvdb
Copy link
Contributor

@jayvdb jayvdb commented on f63a654 Jul 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. This needs tests to avoid regressions.

Please sign in to comment.