public static function toJson(array $array, bool $prettyPrint = true, bool $unescapedSlashes = true): string
    {
        $options = 0;
        if ($unescapedSlashes) {
            $options += JSON_UNESCAPED_SLASHES;
        }
        if ($prettyPrint) {
            $options += JSON_PRETTY_PRINT;
        }
        return json_encode($array, $options);
    }