NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #2081 most downloaded on Packagist
Editable JSON AST with visitor traversal and formatting-preserving printing.
Latest stable
1.0.37
Last release 1 months ago
10 Oct 2026
Release timing varies
gaps range from 8 days to 2 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
4 months old
138 releases · first in 2026
Drag across the ruler to compare, or tap a release to open it.
Fix SplObjectStorage deprecations on PHP 8.5 in JsonValue by @samsonasik in https://github.com/boundwize/jsonrecast/pull/199
Full Changelog: https://github.com/boundwize/jsonrecast/compare/1.0.36...1.0.37
Full Changelog: 1.0.36...1.0.37
Your coding agent can read these notes before it upgrades. Set up the MCP server →
One column per month.
Released: JsonRecast 1.0.37 Latest
Latest
Compare
fix: Stop capping linear jsonSerialize() chains at maximumDepth and detect actual object-identity recursion by @samsonasik in #192
Full Changelog: 1.0.35...1.0.36
Full Changelog: https://github.com/boundwize/jsonrecast/compare/1.0.35...1.0.36
perf: Pass item context directly to indent-change check for object items by @samsonasik in #189
Full Changelog: 1.0.34...1.0.35
Full Changelog: https://github.com/boundwize/jsonrecast/compare/1.0.34...1.0.35
Fix root base indentation when changing indent unit by @samsonasik in #187
Full Changelog: 1.0.33...1.0.34
Full Changelog: https://github.com/boundwize/jsonrecast/compare/1.0.33...1.0.34
Fix surrounding whitespace leaking from unknown nodes in JsonPrettyPrinter by @samsonasik in #185
Full Changelog: 1.0.32...1.0.33
Full Changelog: https://github.com/boundwize/jsonrecast/compare/1.0.32...1.0.33
fix: Keep an inserted container inline when it holds a reused parsed node by @samsonasik in #184
Full Changelog: 1.0.31...1.0.32
Full Changelog: https://github.com/boundwize/jsonrecast/compare/1.0.31...1.0.32
refactor: Move shared printer logic to ScalarEncodeHelper and ContainerPrintHelper by @samsonasik in #182
Full Changelog: 1.0.30...1.0.31
Full Changelog: https://github.com/boundwize/jsonrecast/compare/1.0.30...1.0.31
perf: Detect newline style without copying the source by @samsonasik in #181
Full Changelog: 1.0.29...1.0.30
Full Changelog: https://github.com/boundwize/jsonrecast/compare/1.0.29...1.0.30
fix: Match json_encode() property set when converting internal objects like ArrayObject by @samsonasik in #180
Full Changelog: 1.0.28...1.0.29
Full Changelog: https://github.com/boundwize/jsonrecast/compare/1.0.28...1.0.29
fix: Reject unknown node original text that outgrows the depth left at its position by @samsonasik in #178
Full Changelog: 1.0.27...1.0.28
Full Changelog: https://github.com/boundwize/jsonrecast/compare/1.0.27...1.0.28
fix: Reindent whitespace-only lines with their siblings by @samsonasik in #176
Full Changelog: 1.0.26...1.0.27
Full Changelog: https://github.com/boundwize/jsonrecast/compare/1.0.26...1.0.27
 ![PHPStan]
 ![PHPStan]
Full Changelog: https://github.com/boundwize/jsonrecast/compare/1.0.24...1.0.25
 ![PHPStan]
Full Changelog: https://github.com/boundwize/jsonrecast/compare/1.0.23...1.0.24
 ![PHPStan]
Full Changelog: https://github.com/boundwize/jsonrecast/compare/1.0.22...1.0.23
 ![PHPStan]
 ![PHPStan]
 ![PHPStan]
 ![PHPStan]
 ![PHPStan]
 ![PHPStan]
 ![PHPStan]
Full Changelog: https://github.com/boundwize/jsonrecast/compare/1.0.15...1.0.16
 ![PHPStan]
 ![PHPStan]
 ![PHPStan]
 ![PHPStan]
Full Changelog: https://github.com/boundwize/jsonrecast/compare/1.0.11...1.0.12
 ![PHPStan]
Full Changelog: https://github.com/boundwize/jsonrecast/compare/1.0.10...1.0.11
 ![PHPStan]
 ![PHPStan]
 ![PHPStan]
 ![PHPStan]
 ![PHPStan]
 ![PHPStan]
Fix deprecated attach/detach/contains methods on SplObjectStorage on PHP 8.5 by @samsonasik in https://github.com/boundwize/jsonrecast/pull/139
 ![PHPStan]
 ![PHPStan]
 ![PHPStan]
 ![PHPStan]
After 100 iterative releases, I’m proud to release JsonRecast 1.0.0, the first stable release! 🎉
Read documentation to get started https://boundwize.github.io/jsonrecast/
Enjoy! 😉
Full Changelog: https://github.com/boundwize/jsonrecast/compare/0.4.19...1.0.0
 ![PHPStan]
 ![PHPStan]
Full Changelog: https://github.com/boundwize/jsonrecast/compare/0.4.17...0.4.18
 ![PHPStan]
 ![PHPStan]
 ![PHPStan]
 ![PHPStan]
 ![PHPStan]
 ![PHPStan]
 ![PHPStan]
 ![PHPStan]
 ![PHPStan]
 ![PHPStan]
 ![PHPStan]
 ![PHPStan]
 ![PHPStan]
Full Changelog: https://github.com/boundwize/jsonrecast/compare/0.4.4...0.4.5
 ![PHPStan]
 ![PHPStan]
 ![PHPStan]
 ![PHPStan]
Full Changelog: https://github.com/boundwize/jsonrecast/compare/0.4.0...0.4.1
 ![PHPStan]
This release introduces NodeJsonFinder, a read-only query helper mirroring PHP-Parser's NodeFinder.
For example, use of the find:
$document = JsonRecast::parse(<<<'JSON'
{
"repositories": [
{"type": "composer", "url": "http://repo.internal.example/"},
{"type": "vcs", "url": "https://github.com/acme/lib"}
]
}
JSON);
From the $document object, you can resolve the matching nodes, eg:
$finder = new NodeJsonFinder();
$insecureNodes = $finder->find(
$document,
static fn (NodeJson $node, NodeJsonPath $path): bool =>
$node instanceof StringNode
&& str_starts_with($node->value, 'http://'),
);
// $insecureNodes:
// [
// StringNode { value: 'http://repo.internal.example/' },
// ]
You can also find with extracted nodes data: found nodes do not record their own paths, so when the report should also say where each problem is, extract it in the filter as it arrives:
$insecure = [];
$finder = new NodeJsonFinder();
$finder->find(
$document,
static function (NodeJson $node, NodeJsonPath $path) use (&$insecure): bool {
if ($node instanceof StringNode && str_starts_with($node->value, 'http://')) {
$insecure[] = [
'value' => $node->value,
'path_info' => array_map(
static fn ($segment) => $segment->value, $path->segments()
),
];
return true;
}
return false;
},
);
// $insecure:
// [
// [
// 'value' => 'http://repo.internal.example/',
// 'path_info' => ['repositories', 0, 'url'],
// ],
// ]
Full Changelog: https://github.com/boundwize/jsonrecast/compare/0.3.44...0.4.0
 ![PHPStan]
 ![PHPStan]