robertsaupe/php-json

php library for json and jsonc parsing

Installs: 34

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/robertsaupe/php-json

1.0.4 2024-02-21 10:17 UTC

This package is auto-updated.

Last update: 2025-10-21 13:59:08 UTC


README

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