summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobby Zambito <contact@robbyzambito.me>2023-02-17 16:29:13 -0500
committerRobby Zambito <contact@robbyzambito.me>2023-02-17 16:29:13 -0500
commit5773ed5711a4891c88fb8c14cf8d60e809ea4c71 (patch)
tree83fe3632ae7f293c34fcd153ea0d3cdb33de7de7
parent33a11464a8e346a08271a3c16be172ccb62af450 (diff)
Return the mutated object
-rw-r--r--lib/zambyte/meta/chibi.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/zambyte/meta/chibi.scm b/lib/zambyte/meta/chibi.scm
index 7318189..856e1b8 100644
--- a/lib/zambyte/meta/chibi.scm
+++ b/lib/zambyte/meta/chibi.scm
@@ -43,7 +43,8 @@
(cond
((and (list? json)
(json-object-contains-key? json key))
- (set-cdr! (assoc key json) value))
+ (set-cdr! (assoc key json) value)
+ json)
((null? json)
(error "json-object-set!: cannot set on an empty object" json))
((list? json)