This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-05-26
Channels
- # aws (7)
- # beginners (109)
- # boot (5)
- # carry (2)
- # cider (25)
- # clara (6)
- # cljs-dev (86)
- # cljs-experience (19)
- # cljsrn (1)
- # clojure (183)
- # clojure-dev (7)
- # clojure-dusseldorf (7)
- # clojure-gamedev (2)
- # clojure-greece (32)
- # clojure-italy (2)
- # clojure-norway (1)
- # clojure-russia (228)
- # clojure-sg (3)
- # clojure-spec (38)
- # clojure-uk (104)
- # clojurebridge (1)
- # clojurescript (29)
- # community-development (9)
- # core-async (118)
- # core-matrix (20)
- # cursive (5)
- # datomic (140)
- # emacs (25)
- # figwheel (1)
- # hoplon (21)
- # jobs (4)
- # lein-figwheel (2)
- # luminus (10)
- # lumo (35)
- # off-topic (137)
- # om (31)
- # onyx (62)
- # pedestal (6)
- # reagent (25)
- # remote-jobs (1)
- # ring-swagger (11)
- # spacemacs (2)
- # test-check (17)
- # uncomplicate (10)
- # unrepl (1)
- # untangled (20)
- # vim (4)
- # yada (3)
@jmayaalv Thank you! Looks like i have configured project incorrectly. I have played with several project built by lein for luminus and found critical difference
New question. I have an Oracle database. Query that works. ANd i'm getting lazySeq of maps from DB. How do i transform lazySql of Map to JSON? So that i could sent it through Swagger API. Best thing i was able to get was string with escaped symbols instead of JSON? function is very simple
and result looks like mess
"[{\"file_name\":\"msg_generated_556de7a06097.xml\",\"work_order_id\":\"03048653-9030-4279-b0f0-556de7a06097\",\"veid\":\"ROKSAN123\",\"rn\":1,\"val_failed\":0,\"cfi\":\"D\",\"em_stat\":\"SUCCESS\",\"dr\":null,\"val_stat\":\"PASS\",\"record_count\":1,\"content_type\":\"dsss\",\"latest_timestamp\":\"2017-05-23 08:29:07\",\"error_codes\":null,\"ref_num\":\"M424238144406\",\"time_stamp\":\"2017-05-23 08:29:04\"},
i don’t think you need to make any transformation. You can sent the clojure map just fine. If you specify the content-type as text/json the app should return json
the transformation is already done for you. i believe the middleware ring-json is used underhood for this. https://github.com/ring-clojure/ring-json
also luminus comes with a dependency to https://github.com/dakrone/cheshire it’s quiet good to handle json encoding/decoding.