PHPackages                             owlcorp/cli-json-lint - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. owlcorp/cli-json-lint

ActiveSymfony-bundle[CLI &amp; Console](/categories/cli)

owlcorp/cli-json-lint
=====================

JSON linting command line support mimicking Symfony-way of doing things

v1.0.0(11mo ago)03MITPHPPHP &gt;=8.1

Since Jun 16Pushed 11mo agoCompare

[ Source](https://github.com/owlcorp/cli-json-lint)[ Packagist](https://packagist.org/packages/owlcorp/cli-json-lint)[ RSS](/packages/owlcorp-cli-json-lint/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (11)Versions (2)Used By (0)

CLI JSON Lint
=============

[](#cli-json-lint)

This small package adds a more advanced CLI interface over industry-standard [Seldaek's JSON Lint](https://github.com/Seldaek/jsonlint). The CLI interface is compatible with Symfony's YAML lint commands and integrates nicely with workflows using both JSON and YAML commands.

Installation
------------

[](#installation)

### With Symfony

[](#with-symfony)

Install package with `composer req --dev owlcorp/cli-json-lint`. The command will be automatically available in your application's console:

```
% composer req --dev owlcorp/cli-json-lint
% bin/console list lint | grep json
  lint:json          Lint JSON file(s) and report errors
% bin/console lint:json --help

```

If you're not using [Symfony Flex](https://symfony.com/doc/8.0/setup/flex.html), you need to add the following to your `config/bundles.php`:

```
