Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.52 KB

README.md

File metadata and controls

49 lines (33 loc) · 1.52 KB

php-json

Minimum PHP version: 8.2 Packagist Version Packagist Downloads License

php library for json and jsonc parsing

Supporting

GitHub | Patreon | PayPal | Amazon

Installing

composer require robertsaupe/php-json

Getting started

Json

use robertsaupe\Json\Json;

$json = new Json();
print_r($json->decodeFile('path_to_file.json'));

Jsonc

use robertsaupe\Json\Jsonc;

$jsonc = new Jsonc();
print_r($jsonc->decodeFile('path_to_file.jsonc'));

Credits