The typical route I take is to always check http://clojure-toolbox.com 
first to see if a library exists.  If not and it's a trivial thing I might 
just write it myself.  My first thought is never, "Hey I should go grab a 
Java lib to do this."

But typically yes JSON is extremely close to clojure maps.  So you just 
work with maps then when you need to send\read JSON use cheshire, or 
data.json to convert.

Hope that helps.

On Monday, January 27, 2014 10:54:33 AM UTC-5, Paul Smith wrote:
>
> Hi Jarrod
>
> > Any reason not to use a Clojure library like cheshire for JSON?
>
> Yes, I am probably taking the wrong approach. Is the Clojure way to put 
> the JSON in Clojure data structures and manipulate it with filters etc? 
>
> Many Thanks
>
> Paul
>
>
> On Mon, Jan 27, 2014 at 3:35 PM, Jarrod Swart <jcs...@gmail.com<javascript:>
> > wrote:
>
>> It looks like the method exists to me: 
>> https://github.com/jayway/JsonPath/blob/master/json-path/src/main/java/com/jayway/jsonpath/JsonPath.java#L-445-505
>>
>> It looks like the problem is that you are passing in empty strings: 
>> https://github.com/jayway/JsonPath/blob/master/json-path/src/main/java/com/jayway/jsonpath/internal/JsonReader.java#L52
>>
>>
>> https://github.com/jayway/JsonPath/blob/master/json-path/src/main/java/com/jayway/jsonpath/internal/Utils.java#L159-167
>>
>> Any reason not to use a Clojure library like cheshire for JSON?
>>
>>
>>   -- 
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@googlegroups.com<javascript:>
>> Note that posts from new members are moderated - please be patient with 
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+u...@googlegroups.com <javascript:>
>> 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+u...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
-- 
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/groups/opt_out.

Reply via email to