Jakub Gwóźdź
09/13/2024, 5:33 AMArjan van Wieringen
09/15/2024, 1:26 PMandries.fc
09/16/2024, 8:07 AMArjan van Wieringen
09/16/2024, 9:18 AMandries.fc
09/16/2024, 9:32 AMJakub Gwóźdź
09/16/2024, 10:07 AM.sortedBy() some Comparator<JsonElement> that works ok…ish, but it’s hard to figure out JsonPath of differences (as the list is reordered)
• call .toSet() before comparing with .equal() (tricky, as [3,1,2] would equal [3,1,2,1])
• call .groupingBy{ ... } if you know which property is a key (or, in worst case, use it or it.toString() as key)
overall, it can be done, and I’m doing it, but I had to develop (and maintain) a code that is far from my regular business, so I’d prefer to use some well-established library, if there is any 🙂Carsten
09/19/2024, 1:04 AM