Skip to content

Commit

Permalink
Document that top-level strings are allowed with example
Browse files Browse the repository at this point in the history
Resolves #110
  • Loading branch information
dakrone committed Mar 29, 2017
1 parent d3e7765 commit b341d9c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ changed.
(parse-string "{\"foo\":\"bar\"}" (fn [k] (keyword (.toUpperCase k))))
;; => {:FOO "bar"}

;; top-level strings are valid JSON too
(parse-string "\"foo\"")
;; => "foo"

;; parse some SMILE (keywords option also supported)
(parse-smile <your-byte-array>)
Expand Down

0 comments on commit b341d9c

Please sign in to comment.