Opened 5 years ago
Last modified 4 years ago
#18804 new defect
Cannot open .JSON file
Reported by: | Zverikk | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core geojson | Version: | latest |
Keywords: | Cc: |
Description
JOSM 15951 (latest atm), macOS 10.14.5.
I have a file, say borders.json, with GeoJSON contents.
I open JOSM, click "file → open", select the json... But it's grayed out, and I cannot choose it. I cannot drag a json file onto JOSM.
This is a regression from r15865. I understand some json files are not geojson — but some are. Could I please have a way of opening *.json files as geojson?
Attachments (0)
Change History (7)
comment:1 by , 5 years ago
comment:2 by , 5 years ago
Component: | Core → Core geojson |
---|---|
Keywords: | geojson removed |
comment:3 by , 5 years ago
For the same reason html files can have .htm and .html extension, or yaml files with .yml. It's faster to type by hand. And my experience with MS operating systems still makes me wary of spaces in file names and extensions too long.
I understand not all json files are geojson, while all geojson are json. Can you instead implement a check in the geojson core to distinguish between the two, and if failed, pass the file along? It might be useful in future for e.g. specific csv or json parsers.
comment:4 by , 5 years ago
The comparison with html
/htm
and yaml
/yml
is not completely accurate since those extensions are synonyms.
Better examples would be docx
/zip
or odt
/xml
.
I did some testing: QGIS opens a json
file as GeoJSON. LibreOffice Writer opens an xml
file as document.
follow-up: 6 comment:5 by , 5 years ago
I have a similar problem. I'm not able to open *.json or *.geojason files since JOSM 15937
comment:6 by , 5 years ago
Replying to miluethi:
I have a similar problem. I'm not able to open *.json or *.geojason files since JOSM 15937
"geojason" is not a valid extension. but "geojson" is, and should work.
comment:7 by , 4 years ago
Summary: | Cannot open JSON file on macOS → Cannot open .JSON file |
---|
Replying to Zverikk:
If we do that we will receive bug reports of people opening json files which are not geojson files... Why is your file not using the .geojson extension?