(read-string s)
(read-string opts s)
Reads one object from the string s.
Returns nil when s is nil or empty.
To read data structures only, use clojure.tools.reader.edn/read-string
Note that the function signature of clojure.tools.reader/read-string and
clojure.tools.reader.edn/read-string is not the same for eof-handling
Source
(defn
read-string
"Reads one object from the string s.\n Returns nil when s is nil or empty.\n\n To read data structures only, use clojure.tools.reader.edn/read-string\n\n Note that the function signature of clojure.tools.reader/read-string and\n clojure.tools.reader.edn/read-string is not the same for eof-handling"
([s] (read-string {} s))
([opts s]
(when
(and s (not (identical? s "")))
(read opts (string-push-back-reader s)))))