Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # The MIT License (MIT)
- # Copyright (c) 2016 thewizardplusplus <thewizardplusplus@yandex.ru>
- to_entries
- | map_values(. + {"length": .value | length | (. * -1)})
- | sort_by(.length)
- | from_entries
- | map_values(sort)
- | map_values(if (. | length) > 1 then . else .[0] end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement