CoreyD97 / BurpExtenderUtilities

A collection of utilities to simplify the creation of Burp Suite plugins
GNU Affero General Public License v3.0
22 stars 4 forks source link

serialization changes the order #7

Open irsdl opened 2 years ago

irsdl commented 2 years ago

Currently gson serialization change the order. For example, I have a LinkedHashSet item which requires saving using its history (when it has entered the list). However, when the setting is saved, it serialized it in a random order.

It would be good find a generic way of doing this if data needs to keep their order (e.g. by using LinkedHashSet) - you may need to define a custom serializer for it but I have no idea how this can be implemented at the moment.