Given I have a JSON Array such as:
[ { "email": "[email protected]" }, { "email": "[email protected]" }, { "email": "[email protected]" } ]
In clojure script how can I iterate through the array and extract the value of each email tag.
in clojure I have the following:
(doseq [record (method that gets json data) true)]
(do-something (:email record))
)
which works as expected, however in Clojurescript if I do the same instead of returning the expected result, it simply returns each character in the JSON string as on its own e.g.:
[
{
"
...
Alls I want is a way to return the value of each email element and pass them to a function.