Hello All!
I'm trying to edit yaml file with this library and problem is that order of elements is not preserved.
The file is very big and I'm trying to trace changes made via compare tool. when 2 files are out of order it's impossible to compare them.
I suppose it's due to internal code using HashMap instead of LinkedHashMap or similar:
YamlReader.readValueInternal(...) {
...
case MAPPING_START :
paramClass1 = HashMap.class;
break;
...
}
Please allow us to read and write tree with the same element order.
Maybe some boolean flag in ReaderConfig which changes all HashMap to LinkedHashMap during structure initialization.