alexeyshockov / json-wrapper
json_encode() and json_decode() wrapper with better error handling
Installs: 1 036
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 4
Forks: 1
Open Issues: 1
Requires
- php: ~5.6 || ~7.0
Requires (Dev)
- henrikbjorn/phpspec-code-coverage: ~1.0
- phpspec/phpspec: ~2.3
This package is auto-updated.
Last update: 2024-10-08 22:17:56 UTC
README
json_encode() and json_decode() wrapper with better error handling
PHP 7.3 and above
Since version 7.3 you PHP supports JSON_THROW_ON_ERROR
constant to change the default behaviour to exceptions. No need for additional libraries anymore.