unional / jsonc
jsonc library
v1.0.1
2021-02-22 20:35 UTC
Requires (Dev)
- phpunit/phpunit: ^9.5
README
PHP jsonc support.
install
composer require unional/jsonc
usage
use Unional\Jsonc\JSONC; print_r(JSONC::decode('{ /* comment */"a": 1 }'));
Attribution
The solution in this package is using the implementation made by Alexander Shostak in stackoverflow.