Permalink
Browse files

Add license & readme

  • Loading branch information...
1 parent cd450b3 commit 44a4df33dd2e3bb370ff50aeb12621a8f1a77cfa @Seldaek Seldaek committed Dec 13, 2011
Showing with 62 additions and 0 deletions.
  1. +19 −0 LICENSE
  2. +43 −0 README.mdown
View
19 LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2011 Jordi Boggiano
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is furnished
+to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
View
@@ -0,0 +1,43 @@
+JSON Lint
+=========
+
+[![Build Status](https://secure.travis-ci.org/Seldaek/jsonlint.png)](http://travis-ci.org/Seldaek/jsonlint)
+
+Usage
+-----
+
+ use Seld\JsonLint\JsonParser;
+
+ // returns null if it's valid json, or a ParsingException object. Call
+ // ->getDetails() on the exception to get more info.
+ $parser->lint($json);
+
+ // returns parsed json, like json_decode() does, but slower, throws
+ // exceptions on failure.
+ $parser->parse($json);
+
+Requirements
+------------
+
+- PHP 5.3+
+- [optional] PHPUnit 3.5+ to execute the test suite (phpunit --version)
+
+Submitting bugs and feature requests
+------------------------------------
+
+Bugs and feature request are tracked on [GitHub](https://github.com/Seldaek/jsonlint/issues)
+
+Author
+------
+
+Jordi Boggiano - <j.boggiano@seld.be> - <http://twitter.com/seldaek>
+
+License
+-------
+
+JSON Lint is licensed under the MIT License - see the LICENSE file for details
+
+Acknowledgements
+----------------
+
+This library is a port of the JavaScript [jsonlint](https://github.com/zaach/jsonlint) library.

0 comments on commit 44a4df3

Please sign in to comment.