toJson() toJson(integer $options) : string Convert the object to its JSON representation. Parameters integer $options Returns string