Jet\BaseObject_Interface_Serializable_JSON

Interface for classes whose instances must be convertible to JSON format. The interface extends the PHP interface \JsonSerializable and adds a declaration of a custom toJSON method:

interface BaseObject_Interface_Serializable_JSON extends JsonSerializable 
         public function 
toJSON(): string
}
Previous chapter
Jet\BaseObject_Interface_IteratorCountable
Next chapter
Why?