public function JsonDecode::getLastError

Returns the last decoding error (if any)

Return value

integer

See also

http://php.net/manual/en/function.json-last-error.php json_last_error

File

drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Encoder/JsonDecode.php, line 38

Class

JsonDecode
Decodes JSON data

Namespace

Symfony\Component\Serializer\Encoder

Code

public function getLastError() {
  return $this->lastError;
}