We Rewrote JSONata with AI in a Day, Saved $500K/Year

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

It shows that a comprehensive test suite can let AI rewrite mature open-source libraries into new languages cheaply, potentially replacing manual migration work.

Read this as

The AI company Reco used AI coding tools to rewrite JSONata, an open-source language for transforming JSON data, from JavaScript into the Go programming language. The job took about 7 hours and $400 in AI costs, and the company says it saves $500,000 a year. Simon Willison calls this 'vibe porting' and notes the key enabler was JSONata's existing test suite.

Reco reports it used AI to rewrite the JSONata query language into Go in a single day, saving an estimated $500,000 a year. The rewrite took 7 hours and $400 of AI tokens, enabled by JSONata's existing test suite, with a week-long shadow deployment confirming identical behavior. The takeaway for executives: firms with well-tested code can now cheaply migrate away from legacy dependencies.

Reco's team used AI agents to port JSONata, the JSON expression language associated with Node-RED and similar to jq, from its original JavaScript implementation to custom Go. The first working Go version was built in 7 hours for $400 in token spend, with the existing JSONata test suite as the verification harness. A shadow deployment ran both versions in parallel for a week to confirm exact behavioral parity. The $500K/year savings figure is Reco's own claim.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

JSONata Reco Go Node-RED jq Simon Willison

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading

datasette-charts 0.5a0

Datasette Charts 0.5a0 adds calendar heatmaps, box plots and active-over-time charts, enabling richer data visualisation directly in the browser without extra libraries.