/** * Convert the current array to JSON. * * @param null $options e.g. JSON_PRETTY_PRINT * * @return string */ public function toJson($options = null) { return UTF8::json_encode($this->array, $options); }