Skip to content

Commit

Permalink
Merge pull request #1403 from Argoday/master
Browse files Browse the repository at this point in the history
Use unsorted keys in walk
  • Loading branch information
wtlangford authored Jun 19, 2017
2 parents c538237 + ca12bd9 commit 7b81a83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/builtin.jq
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def bsearch(target):
def walk(f):
. as $in
| if type == "object" then
reduce keys[] as $key
reduce keys_unsorted[] as $key
( {}; . + { ($key): ($in[$key] | walk(f)) } ) | f
elif type == "array" then map( walk(f) ) | f
else f
Expand Down

0 comments on commit 7b81a83

Please sign in to comment.