Skip to content

Commit 67f3db2

Browse files
staabmSeldaek
andauthored
Added a note about performance (#67)
Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
1 parent d8d2e5b commit 67f3db2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ try {
4747
}
4848
```
4949

50+
> **Note:** This library is meant to parse JSON while providing good error messages on failure. There is no way it can be as fast as php native `json_decode()`.
51+
>
52+
> It is recommended to parse with `json_decode`, and when it fails parse again with seld/jsonlint to get a proper error message back to the user. See for example [how Composer uses this library](https://github.com/composer/composer/blob/56edd53046fd697d32b2fd2fbaf45af5d7951671/src/Composer/Json/JsonFile.php#L283-L318):
53+
54+
5055
Installation
5156
------------
5257

0 commit comments

Comments
 (0)