Skip to content
This repository was archived by the owner on Nov 22, 2026. It is now read-only.

Releases

mojo-json v0.1.4

Choose a tag to compare

@amarbarosys amarbarosys released this 08 Nov 23:02

mojo-json-public v0.1.4

Released: 2026-11-08 · Commit: 48500ca · Previous: v0.1.3

What it does

JSON for Mojo: a strict RFC 8259 parser and a writer whose output is byte for byte the same as Python's json.dumps, in the compact, default and indented layouts.

Highlights

  • Packaging only: the conda recipe pins mojo-compiler to the minor the package was built with (<1.3.0a0), so it cannot be installed on a Mojo it does not load on.

Changes

Changed

  • recipe.yaml: mojo-compiler run dependency pinned to the build's minor (<1.3.0a0).

Verified

Check Result
pkg-conda dry run on the version commit (H1-H3,H6) PASS: mojo-json-0.1.4-hb0f4dca_0.conda

Known limits

  • Packages are built on one Mojo minor only; see the package protocol.

Upgrade / run

None: no API change.

Commits

  • 48500ca build: bump version to 0.1.4
  • 43b2198 build: recipe pins mojo-compiler to the build's minor

mojo-json v0.1.3

Choose a tag to compare

@amarbarosys amarbarosys released this 07 Nov 14:40

mojo-json-public v0.1.3

Released: 2026-11-07 · Tag: v0.1.3 · Previous: v0.1.2

What it does

JSON for Mojo: a strict RFC 8259 parser and a writer whose output is byte for byte the same as Python's json.dumps, in the compact, default and indented layouts.

Highlights

  • Docs only: CHANGELOG names no home path.

Changes

Changed

  • CHANGELOG.md and the release notes name no home path.

Verified

Check Result
mojo-lib-audit on this tree PASS
gh-publish --check (ci-local) OK

Known limits

Upgrade / run

None: no code or API change.

Commits

git log v0.1.2..v0.1.3

mojo-json v0.1.2

Choose a tag to compare

@amarbarosys amarbarosys released this 04 Nov 14:41

mojo-json v0.1.2

Released: 2026-11-04 · Commit: 59b468c · Previous: v0.1.1

What it does

JSON for Mojo: a strict RFC 8259 parser and a writer whose output is byte for byte the same as Python's json.dumps, in the compact, default and indented layouts.

Highlights

  • Json.items() walks an array or object in one O(n) pass; an index loop over 100k elements took 8.8 s.
  • A decoder or encoder crash is reported as FAIL by the checks, never as REJECT.

Changes

Added

  • Json.items(): the elements of an array or the member values of an object, as copies, in one pass.
  • Conda recipe (recipe.yaml) and a mojo-upgrade config.
  • A property smoke step in the gate: parse(dumps(x)) == x.
  • README install and quickstart block, one example, and badges for CI, latest release and license.

Fixed

  • check_gen.sh and the decoder check treat a decoder or encoder crash as FAIL, not REJECT.

Verified

Check Result
ci-local: the GitHub workflow in a clean Ubuntu 24.04 container PASS (a246db6)

Known limits

Upgrade / run

uv sync

Commits

  • a246db6 fix(ci): fetch mojo-proptest at a pinned commit when no sibling checkout exists
  • 59b468c fix(release): pyproject.toml, recipe.yaml and uv.lock say 0.1.2
  • 70ff3c9 build: mojo-upgrade config
  • 3003c1a build: conda recipe
  • a0fd0e0 test: property smoke step, parse(dumps(x)) == x
  • a622549 fix(check): check_gen.sh treats a decoder or encoder crash as FAIL, not REJECT
  • 6810f21 docs: one example, one install block
  • 3908996 feat(value): items() walks a container in one pass
  • fef325c fix(check): a decoder crash is a FAIL, not a REJECT
  • b7cc175 docs: install and quickstart block
  • 001ff82 fix(release): pyproject and uv.lock say 0.1.1, the version of the latest tag
  • bfa0270 docs: CI, latest-release and license badges

mojo-json v0.1.1

Choose a tag to compare

@amarbarosys amarbarosys released this 29 Oct 21:10

mojo-json v0.1.1

Released: 2026-10-29 · Commit: 1a7615b · Previous: v0.1.0

What it does

JSON for Mojo: a strict RFC 8259 parser and a writer whose output is byte for byte the same as Python's json.dumps, in the compact, default and indented layouts.

Highlights

  • Builds and runs on the stable Mojo 1.2.0 release.

Changes

Changed

  • The pin moves to Mojo 1.2.0 (pyproject.toml, uv.lock); README and skill say Mojo 1.2.

Verified

Check Result
ci-local: the GitHub workflow in a clean Ubuntu 24.04 container, Mojo 1.2.0 PASS

Known limits

Upgrade / run

uv sync   # installs Mojo 1.2.0

Commits

  • 1a7615b build: Mojo 1.2.0
  • b3819ac docs: NOTICE names the owner and contact

mojo-json v0.1.0

Choose a tag to compare

@amarbarosys amarbarosys released this 21 Oct 10:19

mojo-json v0.1.0

Released: 2026-10-21 · Commit: the one tagged v0.1.0 · Previous: first release

What it does

JSON for Mojo: a strict RFC 8259 parser and a writer whose output is byte for byte the same as Python's json.dumps, in the compact, default and indented layouts.

Highlights

  • Passes JSONTestSuite: all 95 must-accept files with the same values as Python, all 188 must-reject files rejected.
  • Writer identical to json.dumps on 516 generated documents in 4 layouts, floats included (rounded half to even, as Python does).
  • Parse 3.6x faster than Python's C-accelerated json (4.6 MB, 20 passes: 199 to 206 ms vs 734 to 763 ms); dumps 1.6x faster; same peak memory.

Changes

First public release, no earlier version.

Verified

Check Result
scripts/check.sh: JSONTestSuite 318 files vs a Python oracle PASS all, 0 failures
scripts/check_gen.sh: 531 generated documents decoded, 516 encoded in 4 layouts, vs Python PASS all, 0 failures
12 mutants of the library all killed by the two gates
scripts/ci.sh on a pristine Ubuntu 24.04.5 VM PASS ci

Known limits

  • No streaming parser, no big integers, no NaN or Infinity in parsed documents.
  • Duplicate keys are kept in order; get returns the first.
  • Nesting depth stops at 1000.

Upgrade / run

git clone https://github.com/amarbaro/mojo-json && cd mojo-json && uv sync
mojo run -I src examples/quickstart.mojo

Commits

  • v0.1.0 first public release (one commit)