Skip to content

Commit

Permalink
Fixed 1- and 2-argument forms of parse-string-strict.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
maxnoel committed Jan 9, 2014
1 parent 19d422a commit cc5b211
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cheshire/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cc5b211

Please sign in to comment.