JSON Lint is a PHP library and command-line tool for validating and parsing JSON documents. Its lint method returns detailed parsing errors without decoding the input, while parse produces PHP values and throws exceptions when the document is invalid. Error messages include the relevant line, nearby text, a position marker, and the tokens expected by the parser. Optional flags can reject duplicate object keys, preserve them under generated names, or collect repeated values into arrays. The parser can also return associative arrays and accept JavaScript-style inline or block comments. UTF-8 validation detects malformed byte sequences and reports the first invalid position. The package supports a wide range of PHP releases and installs through Composer with an included jsonlint executable.

Features

  • Detailed JSON syntax diagnostics
  • Validation and parsing APIs
  • Duplicate key detection and preservation
  • Associative array output mode
  • Optional JSON comment support
  • Standalone UTF-8 validation

Project Samples

Project Activity

See All Activity >

Categories

JSON

License

MIT License

Follow JSON Lint

JSON Lint Web Site

Other Useful Business Software
$300 Free Credits to Build on Google Cloud Icon
$300 Free Credits to Build on Google Cloud

New to Google Cloud? Get $300 in credits to explore Compute Engine, BigQuery, Cloud Run, Gemini Enterprise Agent Platform, and more.

Start your next project with $300 in free Google Cloud credit. Spin up VMs, run containers, query petabytes in BigQuery, or build agents with Gemini Enterprise Agent Platform. Once your credits are used, keep building with 20+ always-free tier products including Compute Engine, Cloud Storage, GKE, and Cloud Run functions. No commitment required—just sign up and start building.
Claim $300 Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of JSON Lint!

Additional Project Details

Programming Language

PHP

Related Categories

PHP JSON Software

Registered

4 days ago