Skip to content

Commit 7b17e1d

Browse files
author
Amirouche
committed
json-read: reverse alist.
So that, it is the same order as in the input string. ref: https://github.com/tc39/proposal-for-in-order
1 parent 5d4bf62 commit 7b17e1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

srfi/json.scm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@
437437
(case type
438438
((json-structure)
439439
(case obj
440-
((object-close) (return out))
440+
((object-close) (return (reverse out)))
441441
(else (raise (make-json-error "Invalid object.")))))
442442
((json-value)
443443
(let ((key obj))

0 commit comments

Comments
 (0)