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

mojo-json v0.1.2

Choose a tag to compare

@amarbarosys amarbarosys released this 04 Nov 14:41
· 12 commits to main since this release

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