public function JsonEncode::getLastError

Returns the last encoding 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/JsonEncode.php, line 36

Class

JsonEncode
Encodes JSON data

Namespace

Symfony\Component\Serializer\Encoder

Code

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