Toggle navigation
Hot Examples
ZH
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
搜索
Home
GraphQL
Error
Error
jsonSerialize
GraphQL\Error\Error::jsonSerialize PHP Method
Error Class Documentation
显示文件
Open project: webonyx/graphql-php
jsonSerialize()
public
method
Specify data which should be serialized to JSON
See link:
http://php.net/manual/en/jsonserializable.jsonserialize.php
Since:
5.4.0
public
jsonSerialize
( ) :
mixed
return
mixed
data which can be serialized by
json_encode
, which is a value of any type other than a resource.
function jsonSerialize() { return $this->toSerializableArray(); }
Error
__construct
createLocatedError
formatError
getLocations
getPositions
getSource
jsonSerialize
toSerializableArray