GraphQL\Error\Error::jsonSerialize PHP Méthode

jsonSerialize() public méthode

Specify data which should be serialized to JSON
public jsonSerialize ( ) : mixed
Résultat 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();
    }