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.
JsonParser
✓ use Seld\JsonLint\JsonParser;
Parse and validate a JSON string
use Seld\JsonLint\JsonParser;
$parser = new JsonParser();
try {
$parser->parse('{"key": "value"}');
echo 'Valid JSON';
} catch (\Exception $e) {
echo $e->getMessage();
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.12.1latest on Packagist
Audit
Dependencies
No dependency data recorded yet.