Changes for Cheshire 5.0
This commit is contained in:
parent
f4b4bb0849
commit
7a87332537
1 changed files with 2 additions and 2 deletions
|
|
@ -64,12 +64,12 @@
|
||||||
|
|
||||||
|
|
||||||
(try
|
(try
|
||||||
(require 'cheshire.custom)
|
(require 'cheshire.generate)
|
||||||
(catch Throwable t
|
(catch Throwable t
|
||||||
false))
|
false))
|
||||||
|
|
||||||
(try
|
(try
|
||||||
(cheshire.custom/add-encoder ObjectId
|
(cheshire.generate/add-encoder ObjectId
|
||||||
(fn [^ObjectId oid ^com.fasterxml.jackson.core.json.WriterBasedJsonGenerator generator]
|
(fn [^ObjectId oid ^com.fasterxml.jackson.core.json.WriterBasedJsonGenerator generator]
|
||||||
(.writeString generator (.toString oid))))
|
(.writeString generator (.toString oid))))
|
||||||
(catch Throwable t
|
(catch Throwable t
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue