ring-clojure / ring-json

Ring middleware for handling JSON
313 stars 47 forks source link

Update to latest cheshire version #42

Closed bpetri closed 8 years ago

bpetri commented 8 years ago

The cheshire version which is currenlty used does not encode Float values properly:

(json/generate-string (java.lang.Float. 4.9)) 4.900000095367432

This makes wrap-json-response quite unusable for me. Luckily, this is already fixed in the latest cheshire version:

(json/generate-string (java.lang.Float. 4.9)) 4.9

weavejester commented 8 years ago

Sorry for the delay in getting to this. Could you fix the type in the commit message?

bpetri commented 8 years ago

I assume you meant typo?

weavejester commented 8 years ago

Yes, I did! How appropriate I should misspell that word in particular :)