canonicaljson-spec-compliant JSON parser/generator. Forked from clojure.data.json.
Key goals:
CLI/deps.edn
dependency information:
co.insilica/canonical-json {:git/sha "f396256fa81beef63682f85dc72e9a8be6fe9bfb"
:git/url "https://github.com/insilica/canonical-json"}
The API is similar to clojure.data.json's, but with less options.
See the clojure.data.json API Documentation. The :bigdec
option has been removed from the read functions. The
:escape-js-separators
, :escape-slash
, and :escape-unicode
options have been
removed from the write functions.
When reading in JSON data to canonicalize it, it is recommended to use the read functions from canonical-json rather than another JSON library. canonical-json uses BigDecimals to represent JSON numbers, which avoids a lot of subtle inconsistencies when round-tripping data.
Run project tests:
lein test
Test against canonicaljson-spec:
git submodule init
git submodule update
./test-spec.sh
Copyright (c) Stuart Sierra, Rich Hickey, and contributors 2012-2022. All rights reserved. The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (https://opensource.org/licenses/eclipse-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.
Can you improve this documentation? These fine people already did:
Alex Miller, Stuart Sierra, John Shaffer, Sean Corfield & puredangerEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close