All Questions
3 questions
4
votes
2
answers
813
views
How to decode, and then format, tagged LocalDateTime value
This is my Clojurescript function,
(defn message-list [messages]
(println messages) ;; stmt#1
[:ul.messages
(for [{:keys [timestamp message name]} @messages]
^{:key timestamp}
[:li
...
0
votes
1
answer
1k
views
java.io.EOFException when parsing JSON with clojure Transit
I am reading from an input stream with (t/read request-body :json)
and I get a java.lang.RuntimeException: java.io.EOFException.
{"A":"B", "C":"D"}
java.lang.RuntimeException: java.io.EOFException
...
2
votes
2
answers
1k
views
How to write some transit-clj in a file and how to retrieve the data structure from this file
Say I have:
(def c [{:id 12 :name "John"}])
How do I write this in a file?
How do I get back this data structure?