From 5773ed5711a4891c88fb8c14cf8d60e809ea4c71 Mon Sep 17 00:00:00 2001 From: Robby Zambito Date: Fri, 17 Feb 2023 16:29:13 -0500 Subject: Return the mutated object --- lib/zambyte/meta/chibi.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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) -- cgit