toJson() toJson(integer $options) : string Return the data as a JSON string Parameters integer $options json_encode options Returns string