Download the PHP package cmpayments/jsonlint without Composer
On this page you can find all versions of the php package cmpayments/jsonlint. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cmpayments/jsonlint
More information about cmpayments/jsonlint
Files in cmpayments/jsonlint
Package jsonlint
Short Description JSON Lint for PHP checks a string for invalid or malformed JSON, control character error, incorrect encoding or just plain old syntax errors. It returns comprehensive feedback in a one-line error message (one-line message especially meant for REST APIs) about the first error that occurred in the (JSON) string. It supports both RFC 4627 and (its superseding) RFC 7159.
License MIT
Homepage https://github.com/cmpayments/jsonlint
Informations about the package jsonlint
JSON Lint for PHP
JSON Lint for PHP checks a string for invalid or malformed JSON, control character error, incorrect encoding or just plain old syntax errors. It returns comprehensive feedback in a one-line error message (one-line message especially meant for REST APIs) about the first error that occurred in the (JSON) string. It supports both RFC 4627 and (its superseding) RFC 7159.
Usage
Installation
For a quick install with Composer use:
$ composer require cmpayments/jsonlint
JSON Lint for PHP can easily be used within another app if you have a PSR-4 autoloader, or it can be installed through Composer.
Requirements
- PHP 5.4+
- [optional] PHPUnit 3.5+ to execute the test suite (phpunit --version)
Submitting bugs and feature requests
Bugs and feature request are tracked on GitHub
Todo
- [ ] Add support for keys without double quotes*
*RFC 4627 states that an object is an unordered collection of zero or more key/value pairs, where a key is a string and a value is a string, number, boolean, null, object, or array. This JSON linter tends to be more lenient towards keys without quotes in order to accept request from a JavaScript frontend.
Author
Boy Wijnmaalen - https://twitter.com/boywijnmaalen
License
JSON Lint is licensed under the MIT License - see the LICENSE file for details
Acknowledgements
This library is based on Seldaek/jsonlint and zaach/jsonlint.