Skip to content

Commit 44a4df3

Browse files
committed
Add license & readme
1 parent cd450b3 commit 44a4df3

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

LICENSE

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2011 Jordi Boggiano
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is furnished
8+
to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.

README.mdown

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
JSON Lint
2+
=========
3+
4+
[![Build Status](https://secure.travis-ci.org/Seldaek/jsonlint.png)](http://travis-ci.org/Seldaek/jsonlint)
5+
6+
Usage
7+
-----
8+
9+
use Seld\JsonLint\JsonParser;
10+
11+
// returns null if it's valid json, or a ParsingException object. Call
12+
// ->getDetails() on the exception to get more info.
13+
$parser->lint($json);
14+
15+
// returns parsed json, like json_decode() does, but slower, throws
16+
// exceptions on failure.
17+
$parser->parse($json);
18+
19+
Requirements
20+
------------
21+
22+
- PHP 5.3+
23+
- [optional] PHPUnit 3.5+ to execute the test suite (phpunit --version)
24+
25+
Submitting bugs and feature requests
26+
------------------------------------
27+
28+
Bugs and feature request are tracked on [GitHub](https://github.com/Seldaek/jsonlint/issues)
29+
30+
Author
31+
------
32+
33+
Jordi Boggiano - <[email protected]> - <http://twitter.com/seldaek>
34+
35+
License
36+
-------
37+
38+
JSON Lint is licensed under the MIT License - see the LICENSE file for details
39+
40+
Acknowledgements
41+
----------------
42+
43+
This library is a port of the JavaScript [jsonlint](https://github.com/zaach/jsonlint) library.

0 commit comments

Comments
 (0)