Skip to content

Commit

Permalink
Merge pull request #48 from openaddresses/no-whitespace-in-geojson
Browse files Browse the repository at this point in the history
Sort keys and remove whitespace in JSON separators
  • Loading branch information
iandees authored Sep 2, 2023
2 parents e39f845 + c0077e8 commit 101f758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openaddr/process_one.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def render_geojsonld(csv_filename, temp_dir):
else:
feat["properties"] = None

geojsonld_file.write(json.dumps(feat))
geojsonld_file.write(json.dumps(feat, sort_keys=True, separators=(',', ':')))
geojsonld_file.write('\n')

return geojsonld_filename
Expand Down

0 comments on commit 101f758

Please sign in to comment.