From cc5b211580ae2dcd0cda839d207704581b5a8bee Mon Sep 17 00:00:00 2001 From: Max Noel Date: Thu, 9 Jan 2014 11:00:55 -0500 Subject: [PATCH] Fixed 1- and 2-argument forms of parse-string-strict. When called with only 1 or 2 arguments, parse-string-strict deferred its work to the 4-argument form of parse-string instead of parse-string-strict (thus still decoding top-level arrays as lazy seqs instead of vectors). Finishes fixing #46 and #48. --- src/cheshire/core.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cheshire/core.clj b/src/cheshire/core.clj index 30f78d17..b1d15a43 100644 --- a/src/cheshire/core.clj +++ b/src/cheshire/core.clj @@ -104,8 +104,8 @@ and returning the collection to be used for array values. Does not lazily parse top-level arrays." - ([string] (parse-string string nil nil)) - ([string key-fn] (parse-string string key-fn nil)) + ([string] (parse-string-strict string nil nil)) + ([string key-fn] (parse-string-strict string key-fn nil)) ([^String string key-fn array-coerce-fn] (when string (parse/parse-strict