Given a map this will transform ir into an array of sequential paired items
ie:
{"key1": "value1", "key2": "value2"} -> "key1", "value1", "key2", "value2"
Given an object this function will try to parse as double and round the value
returning a string
It also provides a fallback function orElse to use if the value processed is an invalid number
by default this returns 0 if no fallback provided
Given an array of sequential paired items this will transform ir into a map
ie:
"key1", "value1", "key2", "value2" -> {"key1": "value1", "key2": "value2"}