jsonSerialize() jsonSerialize() : mixed Specify data which should be serialized to JSON. Returns mixed — data which can be serialized by json_encode, which is a value of any type other than a resource
serialize() serialize() : string String representation of object. Returns string — the string representation of the object or null
unserialize() unserialize(string $serialized) : mixed Constructs the object. Parameters string $serialized The string representation of the object. Returns mixed —