Order of properties when writing #51
-
Hi, we are using jts2geojson to serialise some features and feature collections, but ran into problems when doing some read/write consistency round-trip tests, that involved comparing two geojson files as text files. The main issue was that order of key-value-pairs in the GeoJSON feature
This of course relies on having access to the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
In my opinion it is wrong to do text comparison of json for round trip tests, you should be using some json aware comparison because as you are aware of the properties is not an ordered set. That said, I don't know if it's possible to control in any way and this project is more or less in almost non existent maintenance so you will have to investigate this on your own. Sorry for perhaps a disappointing answer. |
Beta Was this translation helpful? Give feedback.
-
Hi, thank you for the quick response. I partially agree with your assessment that JSON file comparisons are not ideal and was just hoping for a potentially quick solution. the fact that this project is essentially unmaintained is also valuable info. So all in all not disappointing, as I can now focus looking elsewhere. So thanks again :-) |
Beta Was this translation helpful? Give feedback.
Hi, thank you for the quick response. I partially agree with your assessment that JSON file comparisons are not ideal and was just hoping for a potentially quick solution.
the fact that this project is essentially unmaintained is also valuable info.
So all in all not disappointing, as I can now focus looking elsewhere.
So thanks again :-)