JSON Import / Export has a smol bug.
I already know, what to do, to fix it, but I wanted to ask, which of the two solutions would be better.
The issue is that in src/qml/script/ExportJson.qml:56
, the field for the file path in the exported JSON is named "File Path"
, but src/qml/script/ImportJson.qml:102
expects that field to be named filePath
instead.
This could easily be fixed by either naming the field filePath
in the exporting script (which seems like the more ›right‹ solution to me, because it avoids the space in the field name, but it would in theory break external scrips, which look for that field), or making the importing script look for "File Path"
instead (which would work just as fine).
I already tested both solutions and they seem to work flawlessly, which should I change?