Trailing commas in CSVs are now treated as empty fields.

Empty fields are now treated as empty strings rather than nulls
in tippecanoe-json-tool, for consistency with tile-join.
This commit is contained in:
Eric Fischer
2018-05-24 13:54:00 -07:00
parent 32b3a15406
commit 54532795f6
10 changed files with 35 additions and 25 deletions
+2
View File
@@ -318,7 +318,9 @@ void join_csv(json_object *j) {
} else if (is_number(v)) {
attr_type = JSON_NUMBER;
}
}
{
// This knows more about the structure of JSON objects than it ought to
json_object *ko = (json_object *) malloc(sizeof(json_object));