Apologies if the question seems unclear. Essentially, I am dealing with an object structured as follows:
[{"6":6.5},{"4":4.2},{"6":6.3}]
My goal is to eliminate duplicate keys while preserving their values, and merge them into a single unique key, forming an array like so:
[{"6":[6.5, 6.3]}, {"4": 4.2}]
Any suggestions on how to achieve this?