From b341d9c96df0809431b483309b1173a42e36b6d6 Mon Sep 17 00:00:00 2001 From: Lee Hinman Date: Wed, 29 Mar 2017 10:12:28 -0600 Subject: [PATCH] Document that top-level strings are allowed with example Resolves #110 --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 0835b745..9bf18a5d 100644 --- a/README.md +++ b/README.md @@ -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 )