Merge pull request #1403 from Argoday/master

Use unsorted keys in walk
This commit is contained in:
William Langford authored and GitHub committed 2017-06-19 10:55:26 -04:00
commit 7b81a836c3
1 file changed
+1 -1
+1 -1
View File
@@ -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