Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
GraphQL
Language
SourceLocation
jsonSerialize
GraphQL\Language\SourceLocation::jsonSerialize PHP Method
SourceLocation Class Documentation
Show file
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(); }
SourceLocation
__construct
jsonSerialize
toArray
toSerializableArray