$ composer require midhundevasia/json-ast
<?php
use JsonAst\Parser;
$parser = new Parser();
$parser->parse(
'{"hello" : "World"}',
['loc' => true, 'source' => null]
);
$ ./vendor/bin/phpunit --testdox tests
- write more test cases
- code coverage
json-ast is licensed under GNU General Public License (GPLv3) - see the LICENSE
file for details.
Inspired from following repositories.
https://github.com/vtrushin/json-to-ast
https://github.com/vtrushin/code-error-fragment
$ vendor/bin/phpcbf src
$ vendor/bin/php-cs-fixer fix src