Yes, I printed the type of body and as expected it is a JSON string and as 
it is printed in the output. That is what I'm trying to parse into clojure 
data using clojure/data.json.

I am not in control of the data format from the server side - it is a third 
party service. The content-type is text/json... :-\

Thanks for your suggestion.

Alan


On Saturday, September 27, 2014 12:31:07 PM UTC-7, Tobias Kortkamp wrote:
>
> I hope I understood you correctly. You basically don't want to use 
> println if you want to print data in such a way that it can be read in 
> again. For that you need to use pr, prn or pr-str. 
>
> Example: 
>
> (println {:a "hi there"}) will print {:a hi there} 
>
> (prn {:a "hi there"}) will print {:a "hi there"} 
>
> (println "Ex: " (pr-str {:a "hi there"})) will print Ex: {:a "hi there"} 
>
> In other words I suspect that your example's :paymentStatus is the 
> string "QUEUED" already. You can check if a value v is a string with 
> (string? v). 
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to