    :version-patch (Version/getVersionPatch)})
 
 (def ->doc-format
-  "Mapping of keywords to allowed document formats. Used at insertion
-  time.
+  "Mapping of keywords to allowed document formats. Used at insertion time.
   See https://docs.marklogic.com/javadoc/xcc/com/marklogic/xcc/DocumentFormat.html"
-  {:xml DocumentFormat/XML
+  {:xml    DocumentFormat/XML
    :json   DocumentFormat/JSON
    :text   DocumentFormat/TEXT
    :none   DocumentFormat/NONE

(def ->transaction-mode
  "Mapping of keywords to valid Session transaction modes. See
  https://docs.marklogic.com/javadoc/xcc/com/marklogic/xcc/Session.TransactionMode.html"
  {:auto Session$TransactionMode/AUTO
   :query Session$TransactionMode/QUERY
   :update Session$TransactionMode/UPDATE
   :update-auto-commit Session$TransactionMode/UPDATE_AUTO_COMMIT})



      (clojure.edn/read-string s))))

(defn java-json->clj-json
  "Given a MarkLogic XCC JSON object, returns a Clojure representation of its JSON data."
  [java-json]
  (json/read-str (.toString (.asJsonNode java-json))))

