diff --git a/AUTHORS b/AUTHORS index e64a2358..65d6f583 100644 --- a/AUTHORS +++ b/AUTHORS @@ -24,6 +24,7 @@ David R. MacIver - bug fixes David Tolnay - destructuring, build improvements Doug Luce - build Eiichi Sato +Eric Bréchemier - bug fix Filippo Giunchedi - bug fixes Filippo Valsorda - recursive object merge (`*`) Hanfei Shen diff --git a/src/builtin.jq b/src/builtin.jq index 9c543a93..b0e8775a 100644 --- a/src/builtin.jq +++ b/src/builtin.jq @@ -237,7 +237,7 @@ def tostream: else # We really need a _streaming_ form of `keys`. # We can use `range` for arrays, but not for objects. - keys as $keys | + keys_unsorted as $keys | $keys[-1] as $last| ((# for each key $keys[] | . as $key |