Repository navigation
Releases
mojo-json v0.1.4
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-compilerto 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-compilerrun 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
48500cabuild: bump version to 0.1.443b2198build: recipe pins mojo-compiler to the build's minor
mojo-json v0.1.3
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.mdand 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
- As in v0.1.2.
Upgrade / run
None: no code or API change.
Commits
git log v0.1.2..v0.1.3
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
mojo-json v0.1.1
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
- As in v0.1.0.
Upgrade / run
uv sync # installs Mojo 1.2.0
Commits
1a7615bbuild: Mojo 1.2.0b3819acdocs: NOTICE names the owner and contact
mojo-json v0.1.0
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.dumpson 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;
getreturns 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.0first public release (one commit)