diff options
Diffstat (limited to 'src/clojure/contrib/json/write.clj')
-rw-r--r-- | src/clojure/contrib/json/write.clj | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/clojure/contrib/json/write.clj b/src/clojure/contrib/json/write.clj index c9e6852b..6983ad78 100644 --- a/src/clojure/contrib/json/write.clj +++ b/src/clojure/contrib/json/write.clj @@ -43,9 +43,9 @@ (loop [x s] (when (first x) (print-json (first x)) - (when (rest x) + (when (next x) (print ",") - (recur (rest x))))) + (recur (next x))))) (print "]")) (defmethod print-json :object [m] @@ -56,9 +56,9 @@ (print-json k) (print ":") (print-json v)) - (when (rest x) + (when (next x) (print ",") - (recur (rest x))))) + (recur (next x))))) (print "}")) (defn json-str |