Skip to content

Commit 05b027f

Browse files
Use charred instead of cheshire for Tribuo JSON (#446)
* Use charred instead of cheshire for JSON * Add Intellij project files to gitignore
1 parent c0e40ef commit 05b027f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@ java_test/test.arrow
3535
java_test/simulation*
3636
.idea
3737
.calva
38+
*.iml

src/tech/v3/libs/tribuo.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ _unnamed [5 1]:
4141
[tech.v3.datatype :as dtype]
4242
[tech.v3.datatype.casting :as casting]
4343
[clojure.set :as set]
44-
[cheshire.core :as json])
44+
[charred.api :as charred])
4545
(:import [tech.v3.datatype Buffer ArrayHelpers]
4646
[java.util HashMap Map List]
4747
[java.nio.file Files]
@@ -321,6 +321,6 @@ _unnamed [5 1]:
321321
[config-components trainer-name]
322322
(let [config {:config {:components config-components}}
323323
tmp (.toString (Files/createTempFile "config" ".json" (make-array FileAttribute 0)))
324-
_ (->> config json/generate-string (spit tmp))
324+
_ (charred/write-json tmp config)
325325
config-manager (ConfigurationManager. tmp)]
326326
(.lookup config-manager trainer-name)))

0 commit comments

Comments
 (0)