Registry / serialization / colinodell-json5

colinodell-json5

JSON →
library3.0.0phppackagistunverified

UTF-8 compatible JSON5 parser for PHP.

composer require colinodell/json5
INSTALL
IMPORT
SIG · COLINODELL-JSON5
C
colinodell-json5
serializationphpv3.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Json5
use ColinODell\Json5\Json5;

Parse and encode JSON5 data.

use ColinODell\Json5\Json5; $data = Json5::decode(file_get_contents('config.json5')); $encoded = Json5::encode($data);
Debug
Known issues
gotchaJSON5 allows comments and trailing commas, which are not valid in standard JSON.
fix
Ensure your data follows JSON5 syntax when encoding/decoding.
affects: >=3.0.0
Upgrade
Version history
3.0.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
Amazon
1
OpenAI (training)
1
Resources
colinodell-json5 — pip install colinodell-json5 · libregistry