Skip to content
CAI
Software that uses CAICheck a score

sile/jsone

66.1

Adequate · 23 September 2026

1.5k

lines of production code

Erlang

primary language

5

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is a JSON processing library for Erlang and Elixir that provides high-performance encoding and decoding of JSON data. It supports a wide range of serialization and parsing options, including custom formatting for dates, floats, and IP addresses. The codebase includes comprehensive unit tests and benchmarking tools to validate correctness and measure performance against other libraries.

Features

Added JSON library benchmark suite

Introduced a new benchmarking suite in the \benchmark/\ directory to compare the performance of various Elixir JSON libraries (Poison, Jason, jiffy, JSON, jsone, JSX, and Tiny). The suite includes a \run.sh\ script to execute the benchmarks, a \poison.patch\ to configure the test runners, and a \README.md\ documenting the results. The benchmarking tooling has been updated to use Benchee v1.0 and modernized dependency versions for the tested libraries.

benchmark · high confidence

Initial release of jsone JSON library

This change introduces the jsone library, an Erlang library for encoding and decoding JSON data. The commit adds the core source files, a Makefile for building and testing, and a rebar3 build configuration that enables features like HiPE compilation, dialyzer checks, and code coverage. It also includes the MIT license file (COPYING) and a README documenting the library's features, usage examples, and data mapping rules.

(repo-wide) · high confidence

New encoding and decoding modules with expanded options

The library introduces dedicated \jsone\_encode\ and \jsone\_decode\ modules to handle JSON serialization and parsing, replacing the previous monolithic structure. Users gain access to a comprehensive set of encoding options, including \native\_utf8\, \canonical\_form\, \float\_format\, \datetime\_format\, \object\_key\_type\, \undefined\_as\_null\, \skip\_undefined\, and \map\_unknown\_value\. The decoder now supports \object\_format\ (tuple, proplist, or map), \keys\ (binary, atom, or existing atom), \allow\_ctrl\_chars\, \reject\_invalid\_utf8\, and \duplicate\_map\_keys\ (first or last). Additionally, a new \jsone\_inet\ module provides \ip\_address\_to\_json\_string/1\ for converting IP addresses to JSON strings.

src · high confidence

Test coverage

Added comprehensive unit tests for JSON decoding, encoding, and IP address formatting

Added new EUnit test suites for the JSON library's core functionality. The \jsone\_decode\_tests\ module verifies parsing of JSON values including booleans, nulls, integers, floats, strings (with escape sequences, Unicode, and control characters), arrays, and objects. The \jsone\_encode\_tests\ module validates serialization of Elixir/Erlang terms to JSON, covering numbers, strings, arrays, objects, and specifically the new \datetime\ encoding with ISO 8601 formatting and fractional seconds. Additionally, \jsone\_inet\_tests\ was added to test the \jsone\_inet:ip\_address\_to\_json\_string/1\ function for IPv4 and IPv6 addresses.

test · high confidence

Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings — which rule fired, in which file, on which line, and how to fix it — are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.

Score

  • CAI 67 → 66 (-1.1)
  • Rubric changed (rubric-2026.08.19 → rubric-2026.09.15) — scores are not directly comparable.

Lenses

  • Code Health 93 → 98 (+4.8)
  • Architecture 69 → 69 (+0.0)
  • Maturity 57 → 57 (+0.0)
  • Readiness 74 → 68 (-6.0)
  • Security 100 → 92 (-8.0)

Resolved (7)

  • Coverage not included — suite not readable by the collector
  • Dependency hygiene not measured — dependency manifest found but not parsed for hygiene
  • No exposed public API
  • Test reliability not included
  • The Benchmark table lists a JSON row but no encoding rows, and the benchmark result for JSON is noted as 'Only JSON didn't escape non-ASCII on encoding'. (benchmark/README.md)
  • The Usage Example section shows a decode/decode/try_decode usage that is not consistent with the encode/encode/try_encode API described in the module reference. (README.md)
  • complexity unreadable for .erl — churn × complexity hotspots could not be measured

New (7)

  • Coverage not measured — no coverage collector is wired up
  • Dependency hygiene PARTLY measured — rebar3 pinning read, dependency currency not (no rebar.lock-pinned Hex declaration to grade)
  • Documentation: no installation or build instructions (README.md)
  • Documentation: no usage examples (README.md)
  • High: security finding (details withheld)
  • Workflow token permissions not restricted
  • jsone_decode.unicode_string (cognitive 17) (src/jsone_decode.erl)

Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

sile/jsone was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 23 September 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 91edab0f4ced8c42fa644c5a2abf0cfe8e822614 — the exact code this score is about.
  • Scored under rubric-2026.09.15 — the same rubric and the same method as every other entry in this index.
  • Measured by watchdog.canine.dev using codehealth-analyzer preprod-955b9cee9818.