Skip to content
CAI
Software that uses CAICheck a score

sile/jsone

68.3

Adequate · 13 November 2026

1.5k

lines of production code

Erlang

primary language

8

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 cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 68 → 68 (+0.5)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.3) — scores are not directly comparable.

Lenses

  • Code Health 98 → 98 (+0.0)
  • Architecture 69 → 69 (+0.0)
  • Maturity 60 → 61 (+1.0)
  • Readiness 70 → 70 (+0.0)
  • Security 92 → 92 (+0.0)

New (3)

  • Edited copy of a member (4 corresponding lines) (src/jsone_decode.erl)
  • Edited copy of a member (4 corresponding lines) (src/jsone_decode.erl)
  • Edited copy of a member (6 corresponding lines) (src/jsone_decode.erl)

Written by cca.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 13 November 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.11.3 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.61+preprod-b8b1a43ae4c3.