GNU GPL v2+
- Since
- 3.2
- Author
- mwjames
◆ __construct()
SMW\Exception\JSONParseException::__construct |
( |
|
$json | ) |
|
◆ getParseError()
SMW\Exception\JSONParseException::getParseError |
( |
|
$json | ) |
|
|
protected |
PHP has no built-in functionality to find errors in a JSON therefore we rely on JsonLint
to help us find a more meaningful message other than "Syntax error".
JsonLint
notes "... like json_decode() does, but slower, throws exceptions
on failure." now that we failed we can take the performance penalty here and allow users to make an informed decision about the state of the JSON.
◆ getTidyMessage()
SMW\Exception\JSONParseException::getTidyMessage |
( |
| ) |
|
The documentation for this class was generated from the following file: