I am trying to use LinkedHashMap to save the order form a List object. Debugging my Java code, I can see that the object has the right order. However, when I save variable and see it through Cockpit, I see unordered Map.
Is this a bug in deserialization or an error in saving the data?
What do you mean with see in Cockpit? A screenshot would be useful. Note that for example JSON serialization does not guarantee anything with respect to ordering of object keys, even if you serialize a LinkedHashMap. From a JSON perspective, ordering of keys does not matter.