This repository was archived by the owner on Nov 22, 2026. It is now read-only.
Repository navigation
mojo-json v0.1.2
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 amojo-upgradeconfig. - 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.shand 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
- As in v0.1.1.
Upgrade / run
uv sync
Commits
a246db6fix(ci): fetch mojo-proptest at a pinned commit when no sibling checkout exists59b468cfix(release): pyproject.toml, recipe.yaml and uv.lock say 0.1.270ff3c9build: mojo-upgrade config3003c1abuild: conda recipea0fd0e0test: property smoke step, parse(dumps(x)) == xa622549fix(check): check_gen.sh treats a decoder or encoder crash as FAIL, not REJECT6810f21docs: one example, one install block3908996feat(value): items() walks a container in one passfef325cfix(check): a decoder crash is a FAIL, not a REJECTb7cc175docs: install and quickstart block001ff82fix(release): pyproject and uv.lock say 0.1.1, the version of the latest tagbfa0270docs: CI, latest-release and license badges