ghostwriter/json
Safely encode and decode JSON
3.0.3
5.6M downloads/mo
#1453 most downloaded on Packagist
ghostwriter/json
What this package is like to depend on
Last release 2 months ago
19 Jun 2026
Ships unpredictably
gaps range from 2 weeks to 1.8 years
Most releases are documented
notes for 10 of 12 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
12 releases · first in 2022
3 releases in the last 12 months
see the full history below
Release timeline
12 releases · Jul 2022 to Jun 2026Releases
latest 12-
3.0.319 Jun 2026 -
3.0.214 Apr 2026 -
3.0.125 Nov 2025 -
3.0.009 Feb 2024Release notes
Open source →Removed
- Constant
Ghostwriter\Json\Interface\JsonInterface::DECODEwas removed - Constant
Ghostwriter\Json\Interface\JsonInterface::DEPTHwas removed - Constant
Ghostwriter\Json\Interface\JsonInterface::EMPTYwas removed - Constant
Ghostwriter\Json\Interface\JsonInterface::ENCODEwas removed - Constant
Ghostwriter\Json\Interface\JsonInterface::IGNOREwas removed - Constant
Ghostwriter\Json\Interface\JsonInterface::PRETTYwas removed
Changed
- The return type of
Ghostwriter\Json\Interface\JsonInterface#decode()changed frommixedtoarray - Parameter 1 of
Ghostwriter\Json\Interface\JsonInterface#encode()changed name fromint $flags = 0tobool $prettyPrint = false - Parameter 1 of
Ghostwriter\Json\Interface\JsonInterface#validate()changed name fromint $flags = 0tobool $ignoreInvalidUtf8 = false
Full Changelog: 2.0.0...3.0.0
Release notes
Open source →Removed
- Constant
Ghostwriter\Json\Interface\JsonInterface::DECODEwas removed - Constant
Ghostwriter\Json\Interface\JsonInterface::DEPTHwas removed - Constant
Ghostwriter\Json\Interface\JsonInterface::EMPTYwas removed - Constant
Ghostwriter\Json\Interface\JsonInterface::ENCODEwas removed - Constant
Ghostwriter\Json\Interface\JsonInterface::IGNOREwas removed - Constant
Ghostwriter\Json\Interface\JsonInterface::PRETTYwas removed
Changed
- The return type of
Ghostwriter\Json\Interface\JsonInterface#decode()changed frommixedtoarray - Parameter 1 of
Ghostwriter\Json\Interface\JsonInterface#encode()changed name fromint $flags = 0tobool $prettyPrint = false - Parameter 1 of
Ghostwriter\Json\Interface\JsonInterface#validate()changed name fromint $flags = 0tobool $ignoreInvalidUtf8 = false
- Constant
-
2.0.009 Dec 2023Release notes
Open source →Full Changelog: 1.2.0...2.0.0
- Drop PHP
<= 8.2 - Add
validatemethod Jsonclass methods are now, non-static
Release notes
Open source →- Drop PHP <= 8.2
- Add
validatemethod Jsonclass methods are now, non-static
- Drop PHP
-
1.2.016 Aug 2023 -
1.1.017 Jan 2023Release notes
Open source →What's Changed
- Update composer dependencies by @ghostwriter in #11
- Lock file maintenance by @ghostwriter in #12
- Drop PHP 8.0 by @ghostwriter in #13
Full Changelog: 1.0.1...1.1.0
-
1.0.102 Dec 2022Release notes
Open source →What's Changed
- Update composer dependencies by @ghostwriter in #9
- Bump psalm to ^5.1 by @ghostwriter in #10
Full Changelog: 1.0.0...1.0.1
-
1.0.004 Oct 2022 -
0.1.220 Sep 2022Release notes
Open source → -
0.1.109 Aug 2022Nothing published for this version
-
0.1.011 Jul 2022Nothing published for this version