Skip to content

Commit 8f3616a

Browse files
EdwardEdward
Edward
authored and
Edward
committed
Add method to use the ENCODE-OBJECT/ENCODE-SLOTS protocol in ENCODE
1 parent e542b4c commit 8f3616a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

encode.lisp

+4
Original file line numberDiff line numberDiff line change
@@ -446,3 +446,7 @@ LOWERCASE-KEYS? says whether the key should be in lowercase."
446446
(:method (object)
447447
(with-object ()
448448
(yason:encode-slots object))))
449+
450+
(defmethod encode (object &optional stream)
451+
(yason:with-output (stream)
452+
(yason:encode-object object)))

0 commit comments

Comments
 (0)